home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / terms / kermit / b / ckuker.mak < prev    next >
Encoding:
Text File  |  1993-07-13  |  124.4 KB  |  2,911 lines

  1. # CKUKER.MAK, Tue Jul 13 11:31:34 1993
  2. #
  3. CKVER= "5A(189)"
  4. #
  5. # -- Makefile to build C-Kermit 5A for UNIX and UNIX-like systems --
  6. #
  7. # Author: Frank da Cruz, Columbia University Center for Computing Activities
  8. # 612 West 115th Street, New York, NY 10025, USA.  Phone (212) 854-5126.
  9. # e-mail: fdc@watsun.cc.columbia.edu, fdc@columbia.edu, or FDCCU@CUVMA.BITNET.
  10. #
  11. # Copyright (C) 1985, 1993, Trustees of Columbia University in the City of New
  12. # York.  The C-Kermit software may not be, in whole or in part, licensed or
  13. # sold for profit as a software product itself, nor may it be included in or
  14. # distributed with commercial products or otherwise distributed by commercial
  15. # concerns to their clients or customers without written permission of the
  16. # Office of Kermit Development and Distribution, Columbia University.  This
  17. # copyright notice must not be removed, altered, or obscured.
  18. #
  19. # CAREFUL: Don't put the lowercase word "if", "define", or "end" as the first
  20. # word after the "#" comment introducer in the makefile, even if it is
  21. # separated by whitespace.  Some versions of "make" understand these as
  22. # directives.  Uppercase letters remove the danger, e.g. "# If you have..."
  23. #
  24. # WARNING: This is a huge makefile, and it contains nested makes.
  25. # Some "make" programs run out of memory.  If this happens to you, edit
  26. # away all the parts that do not apply to your system and try again.
  27. #
  28. # For 2.10 or 2.11 BSD on DEC PDP-11s, use the separate makefile, ckubs2.mak.
  29. #
  30. #   C-Kermit can also be built for many other systems not supported by
  31. #   this makefile, including VAX/VMS, Data General AOS/VS, OS/2, the Apple
  32. #   Macintosh, the Commodore Amiga, OS-9, and the Atari ST.  They have their
  33. #   own separate build procedures.  See the file CKAAAA.HLP for information.
  34. #
  35. # INSTALLATION NOTES:
  36. #
  37. # Rename this file to "makefile" or "Makefile" if necessary.  Pick out the
  38. # make entry most appropriate for your UNIX system from the list below and
  39. # then give the appropriate "make" command, for example "make bsd", "make
  40. # sys5r3", "make posix".  For more detailed installation instructions, read
  41. # the files ckuins.doc and ckccfg.doc.  For descriptions of known problems and
  42. # limitations, read the files ckcker.bwr and ckuker.bwr (the "beware files").
  43. #
  44. # Most entries build C-Kermit with its symbol table included.
  45. # To reduce the size of the executable program, add "LNKFLAGS=-s" to
  46. # the end of your 'make' command or to the makefile entry.  To further reduce
  47. # the size after building, use 'mcs -d' if your system has such a command.
  48. #
  49. # TCP/IP networking support: If your version does not include TCP/IP
  50. # networking, try adding -DTCPSOCKET to the CFLAGS of your makefile entry.
  51. # If that doesn't work, look at some of the other entries that include this
  52. # flag for ideas about what libraries might need to be included, etc.
  53. #
  54. # Fullscreen file transfer display support: If you are going to use C-Kermit
  55. # for establishing connections (dialed, network, etc), you can configure it to
  56. # produce a formatted file transfer display by including the curses library
  57. # and adding CK_CURSES to the CFLAGS for your option.  There are many examples
  58. # below, usually ending in "c", like rs6000c, du42c, sunos41c, etc.  After
  59. # building, you still have to SET FILE DISPLAY FULLSCREEN to get the formatted
  60. # screen display.
  61. #
  62. # Please report modifications, successes, failures (preferably with fixes) or
  63. # successes to the author.
  64. #
  65. # MAKE COMMANDS FOR DIFFERENT UNIX VERSIONS:
  66. #
  67. # Some of the implementations listed below are untested for v5A:
  68. # + Marks those that have been tested successfully.
  69. # - Marks those that are known not to work.
  70. # ? Marks those yet untested in version 5A.
  71. #
  72. # + for 386BSD (Jolix) 0.0, 0.1, "make 386bsd" (see comments in entry),
  73. #     or (preferably, if it works) "make bsd44" or "make bsd44c".
  74. # + for Alliant FX/8 with Concentrix 4.1 or later, "make bsdlck"
  75. # + for Altos 486, 586, 986 with Xenix 3.0, "make altos"
  76. # + for Altos ACS68000, 8Mhz 68000, UNIX System 3 Rel 2, 512K, "make altos3"
  77. # ? for Amdahl UTS 2.4 on IBM 370 series & compatible mainframes, "make uts24"
  78. # + for Amdahl UTSV IBM 370 series & compatible mainframes, "make utsv"
  79. # + for Amdahl mainframes with UNIX System V R 5.2.6b 580, "make sys3"
  80. # + for Apollo Aegis 9.x, DOMAIN/IX 9.x, "make aegis"
  81. # ? for Apollo DOMAIN/IX, if the above fails, try "make apollobsd"
  82. # + for Apollo with SR10.0 or later, BSD environment, "make sr10-bsd"
  83. # + for Apollo with SR10.0 or later, System V environment, "make sr10-s5r3"
  84. # + for Apple Macintosh II with A/UX pre-3.0, "make aux", "auxgcc" or "auxufs"
  85. # + for Apple Macintosh with A/UX 3.0 and gcc, "make aux3gcc" or aux3gccc
  86. # ? for Apple Macintosh with Minix 1.5.10, "make minix68k" or "make minixc68"
  87. # ? for Arix System 90 with AT&T SVR3, "make sys5r3na"
  88. # + for AT&T 6300 PLUS, "make att6300" or (with no debugging) "make att6300nd"
  89. # + for AT&T 6386 WGS UNIX PC, "make sys5r3"
  90. # + for AT&T 3B2, 3B20 systems, "make att3bx" or "make att3bxc"
  91. # + for AT&T 3B1, 7300 UNIX PC, "make sys3upc", "sys3upcg" (gcc), "sys3upcold",
  92. #     or (for fullscreen curses display) "make sys3upcc", "sys3upcgc" (gcc)
  93. #        or "make sys3upcx" (see entries for more explanation),
  94. #     or (for fullscreen curses display and shared library) "make sys3upcshcc"
  95. # + for AT&T System III/System V R2 or earlier, "make sys3" or "make sys3nid"
  96. # + for AT&T System III/System V with Honey DanBer UUCP, "make sys3hdb"
  97. # + for AT&T System V on DEC VAX, "make sys3" or "make sys5r3"
  98. # + for AT&T System V R3, use "make sys5r3".  This is different from the above.
  99. # + for AT&T System V R4, "make sys5r4", "make sys5r4sx", or "make sys5r4nx",
  100. #     or if the ANSI C function prototyping makes trouble, add -DNOANSI,
  101. #     as in "sys5r4sxna" entry
  102. # + for AT&T System V R4 with Wollongong TCP/IP, "make sys5r4net", ...
  103. # + for AT&T (USL) System V R4.2 ("Destiny") use the sys5r4 entries.
  104. # + for Atari ST with Minix ST 1.5.10.3, "make minix68k" or "make minixc68"
  105. # ? for BBN C/70 with IOS 2.0, "make c70"
  106. # + for Bell UNIX Version 7 (aka 7th Edition), "make v7" (but see below)
  107. # + for BSDI/386, "make bsdiposix"
  108. # + for Berkeley Unix 2.4, "make v7" (but read v7 material below)
  109. # ? for Berkeley Unix 2.9 (DEC PDP-11 or Pro-3xx), "make bsd29"
  110. # + for Berkeley Unix 2.10, use ckubs2.mak (a separate makefile)
  111. # + for Berkeley Unix 2.11, use ckubs2.mak (a separate makefile)
  112. #     Read the instructions in ckubs2.mak.
  113. #     Rename ckubs2.mak to makefile, then "make bsd210" or "make bsd211".
  114. # + for Berkeley Unix 4.1, "make bsd41"
  115. # + for Berkeley Unix 4.2, "make bsd" (tested with 4.2 and 4.3)
  116. # + for Berkeley Unix 4.2 or 4.3 with HoneyDanBer UUCP, "make bsdhdb"
  117. # + for Berkeley Unix 4.3, "make bsd43" (uses acucntrl program for locks)
  118. # + for Berkeley Unix 4.3 without acucntrl program, "make bsdlck" or "make bsd"
  119. # ? for Berkeley Unix 4.3-Tahoe, same as 4.3 BSD
  120. # + for Berkeley Unix 4.3-Reno, "make bsd43" or "make bsd44" or "make bsd44c"
  121. # + for Berkeley Unix 4.3-Carson City, "make bsd44" or "make bsd44c"
  122. # + for Berkeley Unix 4.4-Networking/2, "make bsd44" or "make bsd44c"
  123. # + for Berkeley Unix 4.4-Alpha, "make bsd44" or "make bsd44c"
  124. # ? for Bull DPX/2 with BOS/X, "make rs6000"
  125. # ? for Cadmus, "make sys3"
  126. # ? for Callan Unistar, "make sys3"
  127. # ? for CDC VX/VE 5.2.1 Sys V emulation, "make vxve"
  128. # + for Charles River Data Systems Universe 680x0 with UNOS 9.2, maybe
  129. #     also other UNOS versions, "make crds"
  130. # ? for CIE Systems 680/20 with Regulus, "make cie"
  131. # + for Commodore Amiga 3000UX Sys V R4, "make sys5r4sx"
  132. # + for Commodore Amiga 3000UX Sys V R4 and TCP/IP, "make svr4amiganet"
  133. # ? for Commodore Amiga with Minix 1.5.10, "make minix68k" of "make minixc68"
  134. # + for Concurrent/Masscomp with RTU 4.0 or later, BSD environment, "make
  135. #     rtubsd", "make rtubsd2", "make rtubsd3" (depending on where ndir.h
  136. #     is stored, see entries below).
  137. # ? for Concurrent/Masscomp with RTU 4.0 or later, System V R2, "make rtus5"
  138. # + for Concurrent/Masscomp with RTU 5.0 or later, System V R3, "make rtusvr3"
  139. # + for Concurrent (Perkin-Elmer) 3200 series, "make sys5".
  140. # + for Concurrent (Perkin-Elmer) 3200 series with <dirent.h>, "make ccop1"
  141. # + for Consensys UNIX SV/386 R4V3, "make sys5r4sx"
  142. # ? for Convergent with CTIX Sys V R2, "make sys5"
  143. # + for Convergent with CTIX 6.4.1, "make ctix"
  144. # + for Convex C1, "make convex"
  145. # + for Convex C210 with Convex/OS 8, "make convex8"
  146. # + for Convex C2 with Convex/OS 9.1, "make convex9"
  147. # + for Convex C2 with Convex/OS 10.1 and gcc 2.x, "make convex10gcc"
  148. # + for Cray Research X/MP or YMP or C90 with UNICOS 6.x (System V R3),
  149. #    "make cray"
  150. # + for Cray Research X/MP or YMP or C90 with UNICOS 7.x (System V R4),
  151. #    "make cray"
  152. # + for Cray Research X/MP or YMP or C90 with UNICOS 8.0 Alpha, "make cray8"
  153. # + for Cray Computer Cray-2 or Cray3 with CSOS, "make craycsos"
  154. # + for Cyber 910 (Silicon-Graphics Iris) with Irix 3.3, "irix33"
  155. # + for Data General Aviion with Sys V R4 (DG/UX 5.4), "make dgux540"
  156. #     or "make dgux540c" (compile ckwart separately if necessary)
  157. # + for Data General Aviion with DG/UX 4.3x using Sys V-isms, "make dgux430"
  158. # ? for Data General Aviion with DG/UX 4.3x using BSD-isms, "make dgux430bsd"
  159. # ? for Data General Aviion, earlier UNIX versions,
  160. #     "make sys5r3" (maybe compile ckwart separately)
  161. # ? for Data General MV systems with DG/UX, ???
  162. # + for Data General MV systems with MV/UX, use AOS/VS C-Kermit
  163. # + for Data General MV systems with AOS/VS, use CKDKER.MAK.
  164. # + for DEC VAX with Ultrix 1.x "make bsd"
  165. # + for DEC VAX with Ultrix 2.x "make du2"
  166. # + for DEC VAX or DECstation with Ultrix 3.0, 3.1, "make du3"
  167. # + for DECstation (or VAX) with Ultrix 4.0 or 4.1, "make du4"
  168. # + for DECstation (or VAX) with Ultrix 4.x and Kanji support, "make du4kanji"
  169. # + for DECstation (or VAX) with Ultrix 4.2, "make du42" or "make du42c"
  170. # + for DECstation (or VAX) with Ultrix 4.2, Sys V R4 world, "make du42s5r4"
  171. # + for DECstation (or VAX) with Ultrix 4.x, POSIX world, "make posix"
  172. # + for DECstation with Ultrix 4.3, "make du42"
  173. # + for DECstation with OSF/1 V1.0, "make dec-osf"
  174. # + for DEC Alpha AXP with OSF/1, "make dec-osf"
  175. # + for DEC PC 486 with OSF/1, "make dec-osf-pc"
  176. # - for DEC Pro-350 with Pro/Venix V1.x, "make provx1" (5A is too big)
  177. # ? for DEC Pro-350 with Pro/Venix V2.0 (Sys V), "make sys3nid"
  178. # ? for DEC Pro-380 with Pro/Venix V2.0 (Sys V), "make sys3" or "make sys3nid"
  179. # ? for DEC Pro-380 with 2.9, 2.10, or 2.11 BSD, "make bsd29" or "make bsd210"
  180. # + for Dell UNIX Issue 2.x (= USL Sys V/386 R4.x + fixes), "make dellsys5r4"
  181. #     or "make dellsys5r4c"
  182. # + for DIAB DS90 with DNIX (any version) create an empty <sys/file.h> if
  183. #     this file does not already exist (or add -DNOFILEH to the make entry).
  184. # + for DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX, add "getcwd" to libc.a
  185. #     (see ckuins.doc), then "make dnixold".
  186. # + for DIAB DS90 with DNIX 5.2 (Sys V.2) or earlier, "make dnix",
  187. #     "make dnixnd", or (to add curses and TCP/IP) "make dnixnetc",
  188. # + for DIAB DS90 with DNIX 5.3 (Sys V.3), "make dnix5r3"
  189. # + for DIAB DS90 with DNIX 5.3 (Sys V.3) and TCP/IP, "make dnix5r3net"
  190. # + for DIAB DS90 with DNIX 5.3 2.2 (Sys V.3), ANSI C, "make dnix5r3ansi"
  191. #     or, to include TCP/IP, "make dnix5r3ansinet",
  192. #     but you have to fix a bug in /usr/include/stdlib.h first:
  193. #     change "extern void free(char *str);" to "extern void free(void *str);"
  194. # + for Dolphin Server Technology Triton 88/17 with SV/88 R3.2, "make sv88r32"
  195. # + for Encore Multimax 310, 510 with Umax 4.2, "make umax42"
  196. # + for Encore Multimax 310, 510 with Umax 4.3, "make umax43"
  197. # + for Encore Multimax 310, 510 with Umax V 2.2, use Berkeley cc, "make bsd"
  198. # + for Encore 88K with Umax V 5.2, "make encore88k"
  199. # + for ESIX System V R4.0.3 with TCP/IP support, "make esixr4"
  200. # + for Everex STEP 386/25 Rev G with ESIX Sys V R3.2D, "make sys5r3"
  201. # ? for Fortune 32:16, For:Pro 1.8, "make ft18"
  202. # + for Fortune 32:16, For:Pro 2.1, "make ft21"
  203. # + for FPS 500 with FPX 4.1, "made bsd"
  204. # ? for Harris Night Hawk 88K or 68K with CX/UX pre-6.1, "make sys5r3"
  205. # + for Harris Night Hawk 88K or 68K with CX/UX 6.1 or later, "make cx_ux"
  206. # ? for Heurikon, "make sys3"
  207. # ? for HP-3000, MPE/ix, "make posix"?
  208. # + for HP-9000 Series 500, HP-UX 5.21 with WIN/TCP 1.2 "make hpux500wintcp"
  209. # + for HP-9000 Series, HP-UX < 6.5, without long filenames, no job control,
  210. #     "make hpuxpre65"
  211. # + for HP-9000 Series, HP-UX pre-7.0, without long filenames, "make hpux"
  212. # ? for HP-9000 Series, HP-UX 7.0 or later, no long filenames, "make hpux7sf"
  213. # + for HP-9000 Series with HP-UX Sys V R2, BSD long names, "make hpuxlf"
  214. # + for HP-9000 Series with HP-UX Sys V R2, dirent long names, "make hpuxde"
  215. #     or (to include TCP/IP support) "make hpuxdetcp"
  216. # + for HP-9000 Series with HP-UX Sys V R3, "make hpuxs5r3"
  217. # + for HP-9000 Series with HP-UX 7.0, TCP/IP, long filenames, "make hpux70lfn"
  218. # + for HP-9000 300/400 Series (680x0) with HP-UX 8.0, TCP/IP, "make hpux80"
  219. #      or "make hpux80c"
  220. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 8.0, TCP/IP, "make hpux80pa"
  221. #      or "make hpux80pac"
  222. # + for HP-9000 Series with HP-UX 8.0, no TCP/IP, long filenames,
  223. #      "make hpux80notcp" or "make hpuxde"
  224. # + for HP-9000 700/800 Series (PA-RISC), HP-UX 9.1, TCP/IP, "make hpux91pac"
  225. #      or, to use machine features, "make hpux91paco"
  226. # ? for IBM 370 Series with IX/370, "make ix370"
  227. # + for IBM 370 Series with AIX/370 1.2, "make aix370"
  228. # ? for IBM 370 Series with AIX/370 3.0, "make aix370"
  229. # + for IBM 370 Series with AIX/ESA 2.1, "make aixesa"
  230. # - for IBM PC/AT 286 & compatibles with Mark Williams Coherent OS,
  231. #     command-line-only version, "make coherent" (5A is too big)
  232. # + for IBM PC/AT & compatibles with Mark Williams Coherent OS,
  233. #     minimum interactive version, "make coherentmi" (386 version only)
  234. # + for IBM PC/AT & compatibles with Mark Williams Coherent OS,
  235. #     full interactive version, "make coherentmax" (386 version only)
  236. # - for IBM PC/AT & compatibles with original MINIX, "make minix" (too big)
  237. # + for IBM PC/AT & compatibles with MINIX, new compiler, "make minixnew"
  238. # + for IBM PC family, 386-based, with MINIX/386, "make minix386"
  239. #     or if you have GNU CC, "make minix386gcc"
  240. # + for IBM PS/2 with PS/2 AIX 1.0, 1.1, or 1.2, "make ps2aix" on make level
  241. #      1009 with U401450
  242. # + for IBM PS/2 with PS/2 AIX 1.3, "make ps2aix3"
  243. # + for IBM RISC System/6000 with AIX 3.0 or 3.1 "make rs6000" or
  244. #     "make rs6000c" on make level 2008, 3.1.8
  245. # + for IBM RISC System/6000 with AIX 3.2.3Extended
  246. #     "make rs6000", "make rs6000c", "make rs6aix32", or "make rs6aix32c"
  247. # ? for IBM RT PC with AIX 2.1, "make sys3"
  248. # + for IBM RT PC with AIX 2.2.1, "make rtaix" or "make rtaixc"
  249. # ? for IBM RT PC with ACIS 4.2, "make bsd"
  250. # + for IBM RT PC with ACIS 4.3, "make rtacis" or "make bsd KFLAGS=-DNOANSI"
  251. # + for IBM RT PC with 4.3BSD/Reno, "make bsd44" or "make bsd44c"
  252. # + for ICL DRS3000 (80486) with DRS/NX, "make iclsys5r4_486"
  253. # + for ICL DRS6000 (Sparc) with DRS/NX, "make iclsys5r4"
  254. # + Integrated Solutions Inc V8S VME 68020, "make isi"
  255. # + for Intel 302 with Bell Tech Sys V/386 R3.2, "make sys5r3"
  256. # ? for Intel Xenix/286, "make sco286"
  257. # ? for Interactive System III (PC/IX), "make pcix" or "make is3"
  258. # + for Interactive System III (PC/IX) with gcc, "make is3gcc"
  259. # + for Interactive 386/ix 1.0.6 with TCP/IP networking, "make is5r3net2"
  260. # + for Interactive 386/ix 2.0.x, "make is5r3" or (POSIX) "make is5r3p"
  261. # + for Interactive 386/ix 2.0.x with TCP/IP networking, "make is5r3net"
  262. #     or "make is5r3net2"
  263. # + for Interactive 386/ix 2.2.1, job control, curses, no net, gcc,
  264. #     "make is5r3gcc"
  265. # + for Interactive 386/ix 2.2 - 3.0 with TCP/IP networking and job control,
  266. #     "make is5r3netjc"
  267. # + for Interactive UNIX Sys V R3 2.2 with job control, curses, "make is5r3jc"
  268. # + for Interactive UNIX Sys V R3 3.0, "make is5r3jc"
  269. # + for Intergraph Clipper, "make clix"
  270. # + for Linux/386, "make linuxgcc2" or "make linuxgcc2net"
  271. #     (reportedly, the lockfile might need to be changed to /usr/spool/LCK).
  272. # + for Luxor ABC-9000 (DIAB DS-90) with pre-5.2 DNIX, add "getcwd" to libc.a
  273. #     (see ckuins.doc), then "make dnixold".
  274. # ? for Masscomp RTU AT&T System III, "make rtu"
  275. #   for other Masscomp, see Concurrent.
  276. # ? for Microport SV/AT (System V R2), "make mpsysv" (last edit tested: 144)
  277. # + for Microport SVR4 2.2, 3.1, or 4.1 "make sys5r4sx"
  278. # ? for Microsoft,IBM Xenix (/286, PC/AT, etc), "make xenix" or "make sco286"
  279. # + for MIPS System with RISC/os (UMIPS) 4.52 = AT&T SVR3, "make mips"
  280. #     or "make mipstcpc"
  281. # + for Modcomp 9730, Real/IX, "make sys5r3" (or modify to use gcc = GLS cc)
  282. # + for Modcomp Realstar 1000 with REAL/IX D.1, "make sv88r32"
  283. # ? for Motorola Four Phase, "make sys3" or "make sys3nid"
  284. # + for Motorola Delta System V/68 R3, "make sv68r3"
  285. # + for Motorola Delta System V/68 R3V5, "make sv68r3v5"
  286. # + for Motorola Delta System V/68 R3V5.1, "make sv68r3v51"
  287. # + for Motorola Delta System V/88 R32, "make sv88r32"
  288. # + for Motorola Delta System V/88 R40, "make sv88r40"
  289. # + for Mt Xinu Mach386 on 386/486-based PCs, "make bsd43"
  290. # ? for NCR Tower 1632, OS 1.02, "make tower1"
  291. # + for NCR Tower 1632 or Minitower with System V R2, "make sys3"
  292. #     or "make sys3nv"
  293. # + for NCR Tower 32, OS Release 1.xx.xx, "make tower32-1"
  294. # + for NCR Tower 32, OS Release 2.xx.xx, "make tower32-2"
  295. # + for NCR Tower 32, OS Releases based on Sys V R3, "make tower32"
  296. # + for NCR Tower 32, OS Releases based on Sys V R3 with gcc "make tower32g"
  297. # + for NCR System 3000, AT&T UNIX System V R4 2.0, "make sys5r4sxna"
  298. # + for NeXTSTEP 1.0 through 3.0, "make next"
  299. # + for NeXTSTEP/486, "make next"
  300. # + for Nixdorf Targon/31, "make t31tos40x"
  301. # + for Norsk Data Uniline 88/17 with SV/88 R3.2, "make sv88r32"
  302. # + for OkiStation 7300 Series, "make sys5r4sxtcp"
  303. # + for Olivetti LSX-3020 with X/OS R.2.3, "make xos23" or "make xos23c"
  304. # + for Perkin-Elmer (Concurrent) 3200 series, "make sys5".
  305. # + for Perkin-Elmer (Concurrent) 3200 series with <dirent.h>, "make ccop1"
  306. # + for Perkin-Elmer/Concurrent 3200 with Xelos R02, "make ccop1"
  307. # + for PFU Compact A Series SX/A TISP V10/E50 (Japan), "make sxae50"
  308. # ? for Plexus, "make sys3"
  309. # + for Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1,
  310. #     "ucb make pyramid" or for HDB UUCP, "ucb make pyramid-hdb" or
  311. # + for Pyramid MIServer S or ES Series, DataCenter/OSx, "make pyrdcosx"
  312. # + for Pyramid MIS-S MIPS R3000, DataCenter OSx System V R4, "make pyrdcosx"
  313. # + for POSIX on anything, "make posix" (but adjustments might be necessary).
  314. # + for POSIX on SunOS 4.1 or later, "make sunposix"
  315. # + for QNX 4.1 on 286 PC or above, Watcom C 8.5, "make qnx"
  316. # ? for Ridge 32 (ROS3.2), "make ridge32"
  317. # ? for Samsung MagicStation, "make sys5r4"
  318. # ? for SCO Xenix 2.2.1 with development system 2.2 on 8086/8 "make sco86"
  319. # + for SCO Xenix/286 2.2.1 with development system 2.2 on 80286, "make sco286"
  320. #     NOTE: reportedly this makefile is too long for SCO Xenix/286 make, but it
  321. #     works with "makeL", or if some of the other make entries are edited out.
  322. # + for SCO Xenix/386 2.2.2, "make sco386"
  323. # + for SCO Xenix/386 2.3.x, "make sco3r2" or "make sco3r2x"
  324. # + for SCO UNIX/386 3.2.0 or 3.2.1, "make sco3r2" or "make sco3r2x"
  325. # + for SCO UNIX/386 3.2.2, "make sco3r22" or "make sco3r22gcc"
  326. #     or "make sco3r22c"
  327. # + for SCO UNIX/386 3.2.2 with SCO TCP/IP, "make sco3r22net"
  328. #     or "make sco3r22netc" (curses)
  329. # + for SCO ODT 1.1, "make sco3r22net" or "make sco3r22netc" (curses)
  330. # + for SCO UNIX/386 3.2 V4.0, no network support, "make sco32v4"
  331. # + for SCO UNIX 3.2 V4.0 with TCP/IP, <dirent.h> for Extended Acer File
  332. #     System (EAFS), curses, ANSI C compilation, "make sco32v4net"
  333. # + for SCO UNIX 3.2 V4.2, "make sco_odt30"
  334. # + for SCO ODT 2.0, "make sco32v4net"
  335. # + for SCO ODT 3.0, "make sco_odt30"
  336. # + for SCO Xenix/386 or UNIX/386 with Excelan TCP/IP, "make sco3r2net"
  337. #     or (to add curses support) "make sco3r2netc"
  338. # + for SCO Xenix 2.3.x with Racal-InterLan TCP/IP, "make sco3r2netri"
  339. # + for SCO Xenix 2.3.x with SCO (Lachman) TCP/IP, "make sco3r2lai"
  340. # + for other UNIX varieties with Racal Interlan TCP/IP, read sco3r2netri entry
  341. # + for Sequent with DYNIX/PTX 1.2.1, "make dynixptx12"
  342. # + for Sequent with DYNIX/PTX 1.3 or 1.4 with TCP/IP, "make dynixptx13"
  343. # + for Sequent with DYNIX/PTX 2.0 with TCP/IP, "make dynixptx20"
  344. #     or "dynixptx20c"
  345. # + for Sequent Balance 8000 or B8 with DYNIX 3.0.xx, "make dynix3"
  346. #    or "make dynix3noacu"
  347. # + for Sequent Symmetry S81 with DYNIX 3.0.xx, "make dynix3"
  348. # + for Sequent DYNIX 3.1.xx, "make dynix31" or "make dynix31c"
  349. # + for Silicon Graphics Iris System V IRIX 3.2 or earlier, "make iris"
  350. # + for Silicon Graphics Sys V R3 with IRIX 3.3 or later, "make sys5r3"
  351. # + for Silicon Graphics Iris Indigo with IRIX 4.0 or 5.0, "make irix40" or
  352. #     (to include Yellow Pages and Curses) "make irix40ypc"
  353. # + for Solaris 2.0, "make sunsol20" -- should work on any computer that
  354. #    runs Solaris 2.0, since it supposed to be portable.
  355. # + for Solaris 2.1 on Sun SPARC, "make sunos51", "sunos51tcp", etc.
  356. # ? for Solaris 2.1 on 486-based PC, "make sunos51", "sunos51tcp", etc.
  357. # + for Solaris 2.2 on Sun SPARC, "make sunos51", "sunos51tcp", etc.
  358. # + for Solbourne 4/500 with OS/MP 4 "make sunos4"
  359. # + for Solbourne 4/500 with OS/MP 4.1 "make sunos41" or "make sunos41c"
  360. # + for SONY NEWS with NEWS-OS 4.0.1C, "make sonynews"
  361. # + for SONY NEWS with NEWS-OS 4.1.2C, "make sonynews"
  362. # + for Sperry/UNISYS 5000/20, UTS V 5.2 3R1, "make sys5"
  363. # + for Sperry/UNISYS 5000/30/35/50/55, UTS V 5.2 2.01, "make unisys5r2"
  364. # + for Sperry/UNISYS 5000/80 with System V R3, "make sys5r3"
  365. # + for Sperry/UNISYS 5000/95 with System V R3, "make sys5r3"
  366. #     For UNISYS SVR3 it might be necessary to "make sys5r3 KFLAGS=-UDYNAMIC"
  367. # + for Stardent 1520, "make sys5r3"
  368. # + for Sun with Sun UNIX 3.5 and gcc, "make sunos3gcc"
  369. # + for Sun with pre-4.0 SunOS versions, "make bsd" (or appropriate variant)
  370. # + for Sun with SunOS 4.0, BSD environment, "make sunos4"
  371. # + for Sun with SunOS 4.0, BSD, with SunLink X.25, make sunos4x25
  372. # + for Sun with SunOS 4.0, AT&T Sys V R3 environment, "make sunos4s5"
  373. # + for Sun with SunOS 4.1 or 4.1.1, BSD environment, "make sunos41"
  374. #     or "make sunos41c" (curses) or "make sunos41gcc" (compile with gcc)
  375. # + for Sun with SunOS 4.1, BSD, with SunLink X.25, "make sunos41x25"
  376. #     or "make sunos41x25c" (curses)
  377. # + for Sun with SunOS 4.1, 4.1.1, AT&T Sys V R3 environment, "make sunos41s5"
  378. # + for Sun with SunOS 4.1, 4.1.1, POSIX environment, "make sunposix"
  379. # + for Sun with SunOS 4.1.2, "make sunos41" or any of its variations.
  380. #     NOTE:  All SUNOS 4.x systems -- Shared libraries are used by default.
  381. #       If this causes problems, add -Bstatic to CFLAGS.
  382. #     NOTE2: When building C-Kermit under SunOS for the BSD universe,
  383. #       but /usr/5bin/cc is ahead of /usr/ucb/cc in your PATH, add
  384. #       "CC=/usr/ucb/cc CC2=/usr/ucb/cc" to the make entry.
  385. #     NOTE3: If an executable built on one type of Sun hardware does not work
  386. #       on another type, rebuild the program from source on the target machine.
  387. # + for Sun with Solaris 1.0 == SUNOS 4.1.2, "make sunos41"
  388. # + for Sun with SunOS 5.0 == Solaris 2.0, "make sunsol20"
  389. # + for Sun with Solaris 2.0, "make sunsol20"
  390. # + for Sun with Solaris 2.0 and CD-ROM gcc compiler, "make sunsol20gcc"
  391. # + for Sun with SunOS 5.1 == Solaris 2.1, "make sunos51", "make sunos51tcp",
  392. #     "make sunos51c", or "make sunos51cgcc".
  393. # + for Tandy 16/6000 with Xenix 3.0, "make trs16"
  394. # + for Tektronix 6130/4132/43xx (e.g.4301) with UTek OS, "make utek"
  395. #     or (for models without hardware flow control), "make uteknohwfc"
  396. # + for Tektronix XD88 series with UTekV OS, "make utekvr3"
  397. # + for Tri Star Flash Cache with Esix SVR3.2, "make sys5r3"
  398. # ? for Unistar, "make sys5"
  399. # + for UNISYS S/4040 68040 CTIX SVR3.2 6.4.1, "make ctix" or "make sys5r3"
  400. # + for UNISYS U6000/65 MP 486/50 UNIX SVR4 1.0.2, "make sys5r4nx"
  401. #   for UNISYS ... (also see Sperry)
  402. # + for Univel UnixWare, "make unixware"
  403. # ? for Valid Scaldstar, "make valid"
  404. # ? for Whitechapel MG01 Genix 1.3, "make white"
  405. # ? for Zilog ZEUS 3.21, "make zilog"
  406. #
  407. # The result should be a runnable program called "wermit" in the current
  408. # directory.  After satisfactory testing, you can rename wermit to "kermit"
  409. # and put it where users can find it.
  410. #
  411. # To remove intermediate and object files, "make clean".
  412. # To run lint on the source files, "make lintsun", "make lintbsd",
  413. # "make lints5", as appropriate.
  414. #
  415. ##############################################################################
  416. #
  417. # NOTES FOR V7 AND 2.X BSD (BASED ON VERSION 4E OF C-KERMIT):
  418. #
  419. # For Unix Version 7, several variables must be defined to the values
  420. # associated with your system.  BOOTNAME=/edition7 is the kernel image on
  421. # okstate's Perkin-Elmer 3230.  Others will probably be /unix.  PROCNAME=proc
  422. # is the name of the structure assigned to each process on okstate's system.
  423. # This may be "_proc" or some other variation.  See <sys/proc.h> for more
  424. # info on your systems name conventions.  NPROCNAME=nproc is the name of a
  425. # kernel variable that tells how many "proc" structures there are.  Again
  426. # this may be different on your system, but nproc will probably be somewhere.
  427. # The variable NPTYPE is the type of the nproc variable -- int, short, etc.
  428. # which can probably be gleaned from <sys/param.h>.  The definition of DIRECT
  429. # is a little more complicated.  If nlist() returns, for "proc" only, the
  430. # address of the array, then you should define DIRECT as it is below.  If
  431. # however, nlist() returns the address of a pointer to the array, then you
  432. # should give DIRECT a null definition (DIRECT= ).  The extern declaration in
  433. # <sys/proc.h> should clarify this for you.  If it is "extern struct proc
  434. # *proc", then you should NOT define DIRECT.  If it is "extern struct proc
  435. # proc[]", then you should probably define DIRECT as it is below.  See
  436. # ckuv7.hlp for further information.
  437. #
  438. # For 2.9 BSD, the makefile may use pcc rather than cc for compiles; that's
  439. # what the CC and CC2 definitions are for (the current version of the
  440. # makefile uses cc for both; this was tested in version 4E of C-Kermit and
  441. # worked OK on the DEC Pro 380, but all bets are off for version 5A).  2.9
  442. # support basically follows the 4.1 path.  Some 2.9 systems use "dir.h" for
  443. # the directory header file, others will need to change this to "ndir.h".
  444. # 2.10 and 2.11BSD follow the 4.3BSD path and are build with a special entry,
  445. # bsd210, which uses overlays.
  446. #
  447. # The v7 and 2.9bsd versions assume I&D space on a PDP-11.  When building
  448. # C-Kermit for v7 on a PDP-11, you should probably add the -i option to the
  449. # link flags.  Without I&D space, overlays will be necessary (if available),
  450. # or code segment mapping (a`la Pro/Venix) if that's available.
  451. #
  452. ##############################################################################
  453. #
  454. # V7-specific variables.
  455. # These are set up for Perkin-Elmer 3230 V7 Unix:
  456. #
  457. PROC=proc
  458. DIRECT=
  459. NPROC=nproc
  460. NPTYPE=int
  461. BOOTFILE=/edition7
  462. #
  463. # ( For old Tandy TRS-80 Model 16A or 6000 V7-based Xenix, use PROC=_proc,
  464. #   DIRECT=-DDIRECT, NPROC=_Nproc, NPTYPE=short, BOOTFILE=/xenix )
  465. #
  466. ###########################################################################
  467. #
  468. #  Compile and Link variables:
  469. #
  470. #  EXT is the extension (file type) for object files, normally o.
  471. #  See MINIX entry for what to do if another filetype must be used.
  472. #
  473. EXT=o
  474. #LNKFLAGS=
  475. SHAREDLIB=
  476. CC= cc
  477. CC2= cc
  478. MAKE= make
  479. SHELL=/bin/sh
  480. #
  481. ###########################################################################
  482. #
  483. # Easy installation. Modify this to suit your own computer's file organization
  484. # and permissions.  If you don't have write access to the destination
  485. # directories, "make install" will fail.
  486.  
  487. WERMIT = makewhat
  488. DESTDIR =
  489. BINDIR = /usr/local/bin
  490. MANDIR = /usr/man/manl
  491. MANEXT = l
  492. ALL = $(WERMIT)
  493.  
  494. all: $(ALL)
  495.  
  496. install: $(ALL)
  497.     cp wermit $(DESTDIR)$(BINDIR)/kermit
  498. # The following can fail if the program image was already stripped,
  499. # for example by the link flags in the makefile entry.
  500. #    strip $(DESTDIR)$(BINDIR)/kermit
  501.     chmod 755 $(DESTDIR)$(BINDIR)/kermit
  502.     cp ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)
  503.     chmod 644 $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)
  504.  
  505. makewhat:
  506.     @echo 'make what?  You must tell which system to make C-Kermit for.'
  507.     @echo Examples:  make bsd43, make sys5, make sunos41, etc.
  508.     @echo Please read the comments at the beginning of the makefile.
  509.  
  510. ###########################################################################
  511. #
  512. # Dependencies Section:
  513.  
  514. wermit:    ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
  515.         ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) \
  516.         ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  517.         ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) \
  518.         ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  519.         ckcnet.$(EXT)
  520.     $(CC2) $(LNKFLAGS) -o wermit ckcmai.$(EXT) ckutio.$(EXT) \
  521.         ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
  522.         ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) \
  523.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  524.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckuusr.$(EXT) \
  525.         ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) $(LIBS)
  526.  
  527. #Malloc Debugging version
  528.  
  529. mermit:    ckcmdb.$(EXT) ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  530.         ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckuus6.$(EXT) \
  531.         ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) ckcpro.$(EXT) \
  532.         ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  533.         ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  534.         ckuscr.$(EXT) ckcnet.$(EXT)
  535.     $(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckcmai.$(EXT) \
  536.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  537.         ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  538.         ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
  539.         ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) ckuusy.$(EXT) \
  540.         ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  541.         ckcnet.$(EXT) $(LIBS)
  542.  
  543. # Here is an example of building Kermit with overlays for a small machine,
  544. # Like a PDP-11 without separate I&D space. This example is for 2.11 BSD:
  545.  
  546. ovwermit: ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  547.     ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) \
  548.     ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
  549.     ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
  550.     ckuscr.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckuusx.$(EXT) \
  551.     ckuusy.$(EXT) ckustr.o strings.o
  552.     ar x /lib/libc.a getpwent.o ctime.o ndbm.o
  553.     $(CC2) $(LNKFLAGS) -o wermit ckcmai.$(EXT) \
  554.         ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
  555.         ckcfn3.$(EXT) \
  556.          -Z ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
  557.             ckuus3.$(EXT) \
  558.          -Z ckuus4.$(EXT) ckuus5.$(EXT) ckuusr.$(EXT) ckuus6.$(EXT) \
  559.             ctime.o \
  560.          -Z ckuus7.$(EXT) ckcfn3.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
  561.             ckcnet.$(EXT)  \
  562.          -Z ckuus2.$(EXT) ckuusx.$(EXT) ckucon.$(EXT) ckuusy.$(EXT) \
  563.             getpwent.o ndbm.o \
  564.          -Y ckustr.o strings.o $(LIBS)
  565.  
  566. strings.o: strings
  567.     xstr
  568.     cc -c xs.c
  569.     mv -f xs.o strings.o
  570.     rm -f xs.c
  571.  
  572. # Dependencies for each module...
  573. #
  574. # The following almost makes this work with gcc on the Sun-4.
  575. # .SUFFIXES: .c .$(EXT)
  576. # .$(EXT).c: ;    $(CC) $(CFLAGS) -c $<
  577.  
  578. ckcmai.$(EXT): ckcmai.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcnet.h
  579.  
  580. ckcpro.$(EXT): ckcpro.c ckcker.h ckcdeb.h ckcasc.h
  581.  
  582. ckcpro.c: ckcpro.w wart ckcdeb.h ckcasc.h ckcker.h
  583.     ./wart ckcpro.w ckcpro.c
  584.  
  585. ckcfns.$(EXT): ckcfns.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  586.         ckuxla.h
  587.  
  588. ckcfn2.$(EXT): ckcfn2.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h ckuxla.h
  589.  
  590. ckcfn3.$(EXT): ckcfn3.c ckcker.h ckcdeb.h ckcsym.h ckcasc.h ckcxla.h \
  591.         ckuxla.h
  592.  
  593. ckuxla.$(EXT): ckuxla.c ckcker.h ckcdeb.h ckcxla.h ckuxla.h
  594.  
  595. ckuusr.$(EXT): ckuusr.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  596.         ckcasc.h ckcnet.h
  597.  
  598. ckuus2.$(EXT): ckuus2.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  599.         ckcasc.h
  600.  
  601. ckuus3.$(EXT): ckuus3.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  602.         ckcasc.h ckcnet.h
  603.  
  604. ckuus4.$(EXT): ckuus4.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  605.         ckcasc.h ckcnet.h ckuver.h
  606.  
  607. ckuus5.$(EXT): ckuus5.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  608.  
  609. ckuus6.$(EXT): ckuus6.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  610.  
  611. ckuus7.$(EXT): ckuus7.c ckucmd.h ckcker.h ckuusr.h ckcdeb.h ckcxla.h ckuxla.h \
  612.         ckcasc.h ckcnet.h
  613.  
  614. ckuusx.$(EXT): ckuusx.c  ckcker.h ckuusr.h ckcdeb.h ckcasc.h
  615.  
  616. ckuusy.$(EXT): ckuusy.c  ckcker.h ckcdeb.h ckcasc.h
  617.  
  618. ckucmd.$(EXT): ckucmd.c ckcasc.h ckucmd.h ckcdeb.h
  619.  
  620. ckufio.$(EXT): ckufio.c ckcdeb.h ckuver.h
  621.  
  622. ckutio.$(EXT): ckutio.c ckcdeb.h ckcnet.h ckuver.h
  623.  
  624. ckucon.$(EXT): ckucon.c ckcker.h ckcdeb.h ckcasc.h ckcnet.h
  625.  
  626. ckcnet.$(EXT): ckcnet.c ckcdeb.h ckcker.h ckcnet.h
  627.  
  628. wart: ckwart.$(EXT)
  629.     $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
  630.  
  631. ckcmdb.$(EXT): ckcmdb.c ckcdeb.h
  632.  
  633. ckwart.$(EXT): ckwart.c
  634.  
  635. ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h
  636.  
  637. ckuscr.$(EXT): ckuscr.c ckcker.h ckcdeb.h ckcasc.h
  638.  
  639. ###########################################################################
  640. #
  641. # Entries to make C-Kermit for specific systems.
  642. #
  643. # Put the ones that need short makefiles first.
  644.  
  645. bsd210:
  646.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.10BSD.
  647.  
  648. bsd211:
  649.     @echo Please use ckubs2.mak to build C-Kermit $(CKVER) for 2.11BSD.
  650.  
  651. #Apollo Aegis 9.x.  Includes TCP/IP support.
  652. #You can also add processor-dependent optimization switches like -M570.
  653. aegis:
  654.     @echo Making C-Kermit $(CKVER) for Apollo Aegis 9.x...
  655.     $(MAKE) wermit "CFLAGS= -DBSD4 -DDYNAMIC -DTCPSOCKET \
  656.     -DCK_CURSES -O $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  657.  
  658. #Apple Mac II, A/UX pre-3.0
  659. #Warning, if "send *" doesn't work, try the auxufs makefile entry below.
  660. aux:
  661.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  662.     $(MAKE) wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET $(KFLAGS) -i -O" \
  663.         "LNKFLAGS = -i"
  664.  
  665. #Apple Mac II, A/UX pre-3.0, compiled with gcc
  666. auxgcc:
  667.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  668.     $(MAKE) wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET $(KFLAGS) \
  669.     -traditional -i -O" "LNKFLAGS = " "CC = gcc" "CC2 = gcc"
  670.  
  671. #Apple Mac II, A/UX, pre-3.0, but with ufs file volumes, uses <dirent.h>.
  672. auxufs:
  673.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX...
  674.     $(MAKE) wermit "CFLAGS = -DAUX -DDYNAMIC -DTCPSOCKET -DDIRENT \
  675.     $(KFLAGS) -i -O" "LNKFLAGS = -i"
  676.  
  677. #Apple Mac II, A/UX 3.0, compiled with gcc
  678. aux3gcc:
  679.     @echo Making C-Kermit $(CKVER) for Macintosh A/UX 3.0...
  680.     $(MAKE) wermit "CFLAGS = -DAUX -DHDBUUCP -DLFDEVNO -DDYNAMIC \
  681.     -DTCPSOCKET -DDIRENT $(KFLAGS) -O2" "LNKFLAGS =" \
  682.     "CC=gcc -pipe -traditional" "CC2=gcc -pipe -traditional"
  683.  
  684. #As above, plus curses.
  685. aux3gccc:
  686.     $(MAKE) "MAKE=$(MAKE)" aux3gcc "KFLAGS=$(KFLAGS) -CK_CURSES" \
  687.     "LIBS = -lcurses -ltermcap"
  688.  
  689. #Berkeley Unix 4.1
  690. bsd41:
  691.     @echo Making C-Kermit $(CKVER) for 4.1BSD...
  692.     $(MAKE) wermit "CFLAGS= -DBSD41" "LIBS = -ljobs"
  693.  
  694. #Berkeley 4.2, 4.3, also Ultrix-32 1.x, 2.x, 3.x, many others
  695. # Add -O, -DDYNAMIC, -s, etc, if they work.
  696. # If you have a version of BSD but signal() is void rather than int,
  697. # "make bsd KFLAGS=-DSIG_V".
  698. bsd:
  699.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  700.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET $(KFLAGS)"
  701.  
  702. #Berkeley 4.2, 4.3, minimum size
  703. bsdm:
  704.     @echo Making C-Kermit $(CKVER) for 4.2BSD...
  705.     $(MAKE) wermit "CFLAGS= -O -DBSD4 -DDYNAMIC -DNODIAL -DNOHELP \
  706.     -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  707.     "LNKFLAGS = -s"
  708.  
  709. #Berkeley Unix with HoneyDanBer UUCP
  710. bsdhdb:
  711.     @echo Making C-Kermit $(CKVER) for 4.2BSD with HDB UUCP...
  712.     $(MAKE) wermit "CFLAGS= -DHDBUUCP -DBSD4 -DTCPSOCKET $(KFLAGS)"
  713.  
  714. #Berkeley Unix 4.3 with acucntrl program
  715. bsd43:
  716.     @echo Making C-Kermit $(CKVER) for 4.3BSD with acucntrl...
  717.     $(MAKE) wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET $(KFLAGS) -O"
  718.  
  719. #Ditto, with curses support.
  720. bsd43d:
  721.     @echo Making C-Kermit $(CKVER) for 4.3BSD with acucntrl and curses...
  722.     $(MAKE) wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -DCK_CURSES \
  723.     $(KFLAGS) -O"  "LIBS=-lcurses -ltermcap"
  724.  
  725. #Berkeley Unix 4.2 or 4.3 with lock directory /usr/spool/uucp/LCK/LCK..ttyxx,
  726. #but without acucntrl program
  727. bsdlck:
  728.     @echo Making C-Kermit $(CKVER) for 4.2BSD, /usr/spool/uucp/LCK/...
  729.     $(MAKE) wermit "CFLAGS= -DLCKDIR -DBSD4 -DTCPSOCKET $(KFLAGS)"
  730.  
  731. #Berkeley UNIX 4.4-Alpha, NET/2, etc (Post-Reno), with TCP/IP networking.
  732. #NOTE: This is not a pure POSIX configuration.  Using -DPOSIX instead of
  733. #-DBSD44 prevents any kind of directory-reading (for wildcard expansion),
  734. #and disallows use of ENOTCONN symbol for detecting broken network
  735. #connections, and disallows RTS/CTS flow control, and would also require
  736. #definition of the appropriate UUCP lockfile convention.
  737. bsd44:
  738.     @echo Making C-Kermit $(CKVER) for 4.4BSD...
  739.     $(MAKE) wermit "CFLAGS= -DBSD44 -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
  740.  
  741. #Berkeley UNIX 4.4, as above, but with curses for fullscreen display
  742. bsd44c:
  743.     @echo Making C-Kermit $(CKVER) for 4.4BSD with curses...
  744.     $(MAKE) wermit "CFLAGS= -DBSD44 -DCK_CURSES -DDYNAMIC -DTCPSOCKET \
  745.     $(KFLAGS) -O" "LIBS= -lcurses -ltermcap"
  746.  
  747. #Tektronix 6130, 4319, 4301, etc, with UTek OS, /usr/spool/uucp/LCK./...
  748. #The models that support hardware flow control.
  749. utek:
  750.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, hardware flow control'
  751.     $(MAKE) wermit "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET -DDYNAMIC \
  752.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  753.     -DTRMBUFL=2048 -DCK_DTRCTS $(KFLAGS)"
  754.  
  755.  
  756. #Tektronix 4315, 4316, 4317 with UTek OS, /usr/spool/uucp/LCK./...
  757. #The models that do not fully support hardware flow control.
  758. uteknohwfc:
  759.     @echo 'Making C-Kermit $(CKVER) for 4.2BSD/UTek, no h/w flow control'
  760.     $(MAKE) wermit "CFLAGS= -O -DLCKDIR -DBSD4 -DTCPSOCKET -DDYNAMIC \
  761.     -DUTEK -DDCLPOPEN -DLOCK_DIR=\\\"/usr/spool/uucp/LCK.\\\" \
  762.     -DTRMBUFL=2048 $(KFLAGS)"
  763.  
  764. #Tektronix XD88 with  UTekV OS
  765. utekvr3:
  766.     @echo 'Making C-Kermit $(CKVER) for Tektronix XD88 UTekV R3...'
  767.     $(MAKE) wermit \
  768.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  769.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) -O" \
  770.     "LIBS= -lcurses" "LNKFLAGS= -s"
  771.  
  772. #Convergent CTIX 6.4.1
  773. ctix:
  774.     @echo 'Making C-Kermit $(CKVER) for Convergent CTIX 6.4.1'
  775.     $(MAKE) wermit \
  776.     "CFLAGS= -DSVR3 -DDIRENT -DTCPSOCKET -DHDBUUCP -DCK_CURSES -DDYNAMIC \
  777.     $(KFLAGS) -XO" "LNKFLAGS=-s" "LIBS=-lsocket -lcurses -lc_s"
  778.     mcs -d wermit
  779.  
  780. # The following makefile entry should work for any Harris Night Hawk system
  781. # (either 88k or 68k based) running release 6.1 or later of the CX/UX
  782. # operating system. This is a POSIX and ANSI-C compliant system which also
  783. # supports BSD networking. (Earlier CX/UX releases will probably work with
  784. # sys5r3, but this has not been verified).
  785. #
  786. cx_ux:
  787.     @echo Making C-Kermit $(CKVER) for Harris Night Hawk CX/UX 6.1 or later
  788.     $(MAKE) wermit \
  789.     "CFLAGS=-DPOSIX -DTCPSOCKET -DHDBUUCP -DPID_T=pid_t -DWAIT_T=int \
  790.     -Dd_ino=d_fileno -DUID_T=uid_t -DGID_T=gid_t -DDYNAMIC $(KFLAGS) -Xa \
  791.     -O3 -g" "LNKFLAGS=-O3"
  792.  
  793. #Perkin-Elmer 3200 Xelos R02 or earlier
  794. ccop1:
  795.     @echo 'Making C-Kermit $(CKVER) for Xelos & Public Domain Dirent calls'
  796.     @echo 'or System V R2 or earlier...'
  797.     $(MAKE) wermit "CFLAGS = -DATTSV -Dvoid=int -DDIRENT -DCK_CURSES \
  798.     $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -lcurses -ltermlib"
  799.  
  800. #Intergraph Clipper 2000, 3000, 4000, 5000, or 6000 with CLIX 3.1 = Sys V R3
  801. clix:
  802.     $(MAKE) "CC=acc" sys5r3
  803.  
  804. #Mark Williams Coherent 286 or 386 on IBM PC family.
  805. #There is a 64K limit on program size, so this is a command-line only version.
  806. coherent:
  807.     $(MAKE) "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI -DNOICP -DNOSETKEY \
  808.     -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG -DNOXMIT \
  809.     -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" wermit
  810.  
  811. #Mark Williams Coherent 386 on IBM PC family.
  812. #This will make a "minimum interactive" version - no scripts,
  813. #no character sets, no help, no dial, no debug/transaction logging, no
  814. #transmit, msend, mail, type, etc.
  815. coherentmi:
  816.     $(MAKE) "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI -DNOSETKEY \
  817.     -DNOSHOW -DNOCSETS -DNOHELP -DNODIAL -DNOSCRIPT -DNODEBUG -DNOTLOG \
  818.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSYSIOCTLH -DNOSERVER -DNOUUCP \
  819.     -DNOSPL -DNOSETBUF -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  820.     -DNOCMDL $(KFLAGS) -VSUVAR" wermit
  821.  
  822. #Mark Williams Coherent 386 on IBM PC/AT family.
  823. coherentmax:
  824.     $(MAKE) "CFLAGS = -O -DCOHERENT -DDYNAMIC -DNOANSI \
  825.     -DNOSYSIOCTLH $(KFLAGS) -VSUVAR" "LNKFLAGS = -O -s" wermit
  826.  
  827. #DEC Ultrix 2.x
  828. # Add -O, -DDYNAMIC, -s, etc, if they work.
  829. du2:
  830.     @echo Making C-Kermit $(CKVER) for Ultrix 2.x ...
  831.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DDU2 $(KFLAGS)"
  832.  
  833. #DEC Ultrix 3.1 (and probably also 3.0)
  834. du3:
  835.     @echo Making C-Kermit $(CKVER) for Ultrix 3.x...
  836.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DDIRENT -DSIG_V \
  837.     -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -s"
  838.  
  839. #Name changed from ds4 to du4, should work on VAXes as well as DECstations.
  840. ds4:
  841.     $(MAKE) "MAKE=$(MAKE)" du4
  842.  
  843. #DEC Ultrix 4.0 or 4.1 on DECstation, VAXstation, VAX, etc.
  844. du4:
  845.     @echo Making C-Kermit $(CKVER) for Ultrix 4.0 or 4.1...
  846.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
  847.     $(KFLAGS) -Olimit 1350" "LNKFLAGS = -s"
  848.  
  849. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc.
  850. #Like du4, except new C compiler supports -O2 optimization.
  851. du42:
  852.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2...
  853.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
  854.     $(KFLAGS) -O2 -Olimit 1350" "LNKFLAGS = -s"
  855.  
  856. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc.
  857. #Like du42, but with curses support added
  858. du42c:
  859.     @echo Making C-Kermit $(CKVER) for Ultrix 4.2...
  860.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET -DSIG_V -DDYNAMIC \
  861.     -DCK_CURSES $(KFLAGS) -O2 -Olimit 1350" "LNKFLAGS = -s" \
  862.     "LIBS= -lcurses -ltermcap"
  863.  
  864. #DEC Ultrix 4.2 on DECstation, VAXstation, VAX, etc, System V R4 environment
  865. du42s5r4:
  866.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4 on Ultrix...'
  867.     $(MAKE) wermit "CFLAGS = -O2 -Olimit 1350 -DSVR4 -DDIRENT -DHDBUUCP \
  868.     -DDYNAMIC -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  869.  
  870. #DEC OSF/1 V1.0 on DECstation, VAX, or Alpha AXP.
  871. dec-osf:
  872.     @echo Making C-Kermit $(CKVER) for DEC OSF/1 V1.x...
  873.     $(MAKE) wermit "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DSIG_V \
  874.     -DDYNAMIC $(KFLAGS) -Olimit 1350" "LNKFLAGS = -s" "LIBS = -lbsd"
  875.  
  876. #DEC OSF/1 V1.0 on a PC with OSF/1 1.2
  877. dec-osf-pc:
  878.     @echo Making C-Kermit $(CKVER) for PC version of DEC OSF/1 V1.2...
  879.     $(MAKE) wermit "CFLAGS= -DBSD4 -DOSF -D_BSD -DTCPSOCKET -DSIG_V \
  880.     -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lbsd"
  881.  
  882. #Sequent DYNIX/PTX 1.2.1
  883. dynixptx12:
  884.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/PTX 1.2.1...
  885.     $(MAKE) wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPTX \
  886.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t $(KFLAGS) -i -O" \
  887.     "LNKFLAGS = -i"
  888.  
  889. #Sequent DYNIX/PTX 1.3 or 1.4
  890. dynixptx13:
  891.     @echo Making C-Kermit $(CKVER) for Sequent DYNIX/PTX 1.3 TCP/IP...
  892.     $(MAKE) wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPTX  -O \
  893.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DTCPSOCKET $(KFLAGS) -i" \
  894.     "LNKFLAGS = -i" "LIBS = -lsocket -linet -lnsl"
  895.  
  896. #Sequent Dynix/PTX 2.0, ANSI C compilation
  897. dynixptx20:
  898.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent Dynix/PTX 2.0...'
  899.     $(MAKE) wermit "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  900.     -DWAIT_T=int -DNOSETBUF -DPTX  -O" \
  901.     "LIBS = -lsocket -linet -lnsl"
  902.  
  903. #Sequent Dynix/PTX 2.0, ANSI C compilation, with curses
  904. dynixptx20c:
  905.     @echo 'Making C-Kermit $(CKVER) for POSIX, Sequent Dynix/PTX 2.0...'
  906.     $(MAKE) wermit "CFLAGS= -DPOSIX -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  907.     -DWAIT_T=int -DNOSETBUF -DPTX  -DCK_CURSES -O" \
  908.     "LIBS = -lsocket -linet -lnsl -lcurses -ltermcap"
  909.  
  910. #Sequent Dynix 3.0.x
  911. dynix3:
  912.     @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.0.x...
  913.     $(MAKE) wermit "CFLAGS= -DBSD43 -DACUCNTRL -DTCPSOCKET -O \
  914.     -DPWUID_T=int -DGID_T=int $(KFLAGS)"
  915.  
  916. #Sequent Dynix 3.0.x, no ACUCNTRL
  917. dynix3noacu:
  918.     @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.0.x...
  919.     $(MAKE) wermit "CFLAGS= -DBSD43 -DLCKDIR -DTCPSOCKET -O \
  920.     -DUID_T=int -DGID_T=int $(KFLAGS)"
  921.  
  922. #Sequent Dynix 3.1.x
  923. dynix31:
  924.     @echo Making C-Kermit $(CKVER) for Sequent Dynix 3.1.x...
  925.     $(MAKE) wermit "CFLAGS= -O -DDYNAMIC -DDCLPOPEN -DLCKDIR -DBSD4 \
  926.     -DTCPSOCKET $(KFLAGS)"
  927.  
  928. #Sequent Dynix 3.1.2, as above but with curses, to be compiled by gcc 2.3.3.
  929. dynix31c:
  930.     @echo 'Making C-Kermit $(CKVER) for Sequent Dynix 3.1.2, curses...'
  931.     $(MAKE) wermit "CFLAGS= -O2 -DDYNAMIC -DDCLPOPEN -DACUCNTRL \
  932.     -DBSD43 -DTCPSOCKET -DCK_CURSES -DNOSETBUF -DUID_T=int \
  933.     $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  934.  
  935. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  936. encore:
  937.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=$(KFLAGS)"
  938.  
  939. #Encore, as above, but with curses file transfer display included.
  940. encorec:
  941.     $(MAKE) "MAKE=$(MAKE)" umax43 "KFLAGS=-DCK_CURSES $(KFLAGS)" \
  942.     "LIBS= -lcurses -ltermcap"
  943.  
  944. #Encore, UMAX 4.3 (BSD) but without acucntrl program.
  945. umax43:
  946.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.3...
  947.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 wermit \
  948.     "CFLAGS= -DBSD43 -DENCORE -DDYNAMIC -DKANJI -DTCPSOCKET $(KFLAGS) -O"
  949.  
  950. #Encore, UMAX 4.2 (BSD)
  951. umax42:
  952.     @echo Making C-Kermit $(CKVER) for Encore UMAX 4.2...
  953.     $(MAKE) "MAKE=$(MAKE)" PARALLEL=4 wermit \
  954.     "CFLAGS= -DBSD4 -DENCORE -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
  955.  
  956. #Encore 88K UMAX 5.3 with TCP/IP support
  957. encore88K:
  958.     @echo 'Making C-Kermit $(CKVER) for Encore 88K UMAX V, TCP/IP...'
  959.     $(MAKE) wermit "CFLAGS = -q ext=pcc -DSVR3 -DTCPSOCKET -DDIRENT \
  960.     -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS ="
  961.  
  962. #Berkeley Unix 2.8, 2.9 for PDP-11s with I&D space, maybe also Ultrix-11???
  963. #C-Kermit(5A) is simply too large (even turning off almost every feature
  964. #available) to run without both I&D space plus overlays.  The old comment
  965. #suggested running 'pcc' but that won't help.  Changing 'cc' to 'ckustr.sed'
  966. #will cause a string extraction to be done, saving D space by moving strings
  967. #to a file.
  968. bsd29:
  969.     @echo Making C-Kermit $(CKVER) for 2.8 or 2.9BSD.
  970.     @echo Read the makefile if you have trouble with this...
  971.     $(MAKE) ovwermit \
  972.     "CFLAGS= -DBSD29 -DNODEBUG -DNOTLOG -DNOCSETS -DNOHELP \
  973.     -DNOSCRIPT -DNOSPL -DNOXMIT -DNODIAL $(KFLAGS)" \
  974.     "LNKFLAGS= -i -lndir" "CC= cc " "CC2= cc"
  975.  
  976. #Convex C1 with Berkeley Unix
  977. convex:
  978.     @echo Making C-Kermit $(CKVER) for Convex C1 / BSD...
  979.     $(MAKE) wermit "CFLAGS= -DBSD4 $(KFLAGS) -Dmsleep=mnap"
  980.  
  981. #Convex C210 with Convex/OS 8
  982. convex8:
  983.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 8
  984.     $(MAKE) wermit \
  985.     "CFLAGS= -DBSD4 -DTCPSOCKET -DNODEBUG -DDIRENT -DNOFILEH \
  986.     -DDYNAMIC $(KFLAGS) -DSIG_V -Dmsleep=mnap"
  987.  
  988. #Convex C2 with Convex OS 9.1 (should also work with 8.1 or later)
  989. #with ANSI C compiler, uses BSD 4.3 uucp lockfile convention.
  990. convex9:
  991.     @echo Making C-Kermit $(CKVER) for Convex C210 with OS 9.1
  992.     $(MAKE) wermit \
  993.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  994.     -DDYNAMIC -D__STDC__ -DLCKDIR -Dmsleep=mnap -O -ext -tm c1 $(KFLAGS)" \
  995.     "LNKFLAGS = -ext"
  996.  
  997. #Convex C2 with Convex OS 10.1 or later
  998. #with gcc 2.x C compiler
  999. convex10gcc:
  1000.     @echo Making C-Kermit $(CKVER) for Convex C2 with OS 10.1 using gcc
  1001.     $(MAKE) wermit \
  1002.     "CFLAGS= -DPOSIX -DCONVEX9 -DNOIEXTEN -DDIRENT -DNOFILEH -DTCPSOCKET \
  1003.     -DDYNAMIC -D__STDC__  -Dmsleep=mnap -O2 $(KFLAGS)" CC=gcc CC2=gcc
  1004.  
  1005. #Cray X-MP or Y-MP UNICOS 6.x or 7.x.
  1006. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  1007. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  1008. cray:
  1009.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 6.x or 7.0...
  1010.     $(MAKE) wermit NPROC=1 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  1011.     $(KFLAGS) -O1"
  1012.  
  1013. #Cray X-MP or Y-MP UNICOS 8.0 Alpha.
  1014. cray8:
  1015.     @echo 'Making C-Kermit $(CKVER) for Cray X/Y-MP UNICOS 8.0 Alpha...
  1016.     $(MAKE) wermit NPROC=1 "CFLAGS= -DSVR4 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  1017.     $(KFLAGS) -O1"
  1018.  
  1019. #Cray-2 or Cray 3-CSOS
  1020. #NOTE: NPROC tells how many parallel makes to run.  If your Cray has multiple
  1021. #processors, you can set NPROC up to the number of CPUs, e.g. NPROC=16.
  1022. craycsos:
  1023.     @echo 'Making C-Kermit $(CKVER) for Cray-2/3 CSOS
  1024.     $(MAKE) wermit NPROC=1 "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DTCPSOCKET \
  1025.     $(KFLAGS) -DCK_ANSIC -DCK_CURSES" "LIBS=-lnet"
  1026.  
  1027. #Charles River Data Systems Universe with UNOS Version 9.2
  1028. crds:
  1029.     @echo 'Making C-Kermit $(CKVER) for Charles River Data Systems...'
  1030.     make wermit \
  1031.     "CFLAGS = -DATTSV -DNOANSI -DDIRENT -DDYNAMIC -DLONGFN -DTCPSOCKET \
  1032.     -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETREU \
  1033.     -Dsuspend=ksuspend $(KFLAGS) -O" "LNKFLAGS ="
  1034.  
  1035. #NeXTSTEP 1.0 through 3.0.
  1036. #Includes fullscreen file transfer display (curses) and TCP/IP support.
  1037. #Uses shared library to make executable program about 80K smaller.
  1038. #Remove "LIBS = -lsys_s" if this causes trouble.
  1039. next:
  1040.     @echo Making C-Kermit $(CKVER) for NeXT...
  1041.     $(MAKE) wermit \
  1042.     "CFLAGS= -DNEXT -DNOSETBUF -DTCPSOCKET -DDYNAMIC -DLCKDIR -DKANJI \
  1043.     -DCK_CURSES $(KFLAGS) -O -w" "LIBS = -lsys_s -lcurses -ltermcap"
  1044.  
  1045. nextc:
  1046.     $(MAKE) "MAKE=$(MAKE)" next
  1047.  
  1048. nextg:
  1049.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall
  1050.  
  1051. nextgc:
  1052.     $(MAKE) "MAKE=$(MAKE)" next KFLAGS=-Wall
  1053.  
  1054. #POSIX
  1055. posix:
  1056.     @echo 'Making C-Kermit $(CKVER) for POSIX, no UUCP lockfile support...'
  1057.     $(MAKE) wermit "CFLAGS= -DPOSIX -DNOUUCP $(KFLAGS) -O"
  1058.  
  1059. #POSIX, BSDI-style.
  1060. bsdiposix:
  1061.     @echo 'Making C-Kermit $(CKVER) for BSDI/386 POSIX...'
  1062.     $(MAKE) wermit "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1063.     -DDYNAMIC -DNOSETBUF -DLOCK_DIR=\\\"/var/spool/uucp\\\" $(KFLAGS) -O"
  1064.  
  1065. # make 386bsd 0.0new, posix
  1066. # for  386bsd 0.1.24, change /usr/include/termios.h to #define NCCS if
  1067. #  _POSIX_SOURCE is #defined. (source: lewine, posix prgmrs guide, o`reilly)
  1068. 386bsd:
  1069.     @echo 'Making C-Kermit $(CKVER) for jolix 386BSD 0.0new and 0.1.24...'
  1070.     $(MAKE) wermit "CFLAGS= -DPOSIX -DSETREUID -DPIDSTRING -DUSLEEP \
  1071.     -D_386BSD -DCK_CURSES -DTCPSOCKET -DDYNAMIC -DNOSETBUF \
  1072.     -DLOCK_DIR=\\\"/var/spool/uucp\\\" \
  1073.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1074.  
  1075. #Pyramid 9XXX (e.g. 9845) or MIServer T series, OSx 4.4b thru 5.1
  1076. pyramid:
  1077.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  1078.     ucb $(MAKE) wermit "CFLAGS= -DBSD43 -DTCPSOCKET -DDYNAMIC \
  1079.     -DPYRAMID -O $(KFLAGS)" "LNKFLAGS = -s"
  1080.  
  1081. #Pyramid Dual Port OSx using HonyDanBer UUCP, curses and TCP
  1082. pyramid-hdb:
  1083.     @echo Making C-Kermit $(CKVER) for Pyramid Dual Port OSx
  1084.     ucb $(MAKE) wermit "CFLAGS= -DBSD43 -DTCPSOCKET -DDYNAMIC \
  1085.     -DHBDUUCP -DCK_CURSES -O $(KFLAGS)" \
  1086.     "LNKFLAGS = -s" "LIBS = -lcurses -ltermcap"
  1087.  
  1088. #Pyramid DC/OSx (UNIX System V R4).
  1089. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1090. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1091. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  1092. #NOTE: Remove -O and Olimit:1500 from CFLAGS if TELNET connections do not work.
  1093. pyrdcosx:
  1094.     @echo 'Making C-Kermit $(CKVER) for Pyramid DC/OSx...'
  1095.     $(MAKE) wermit "CFLAGS = -Xa -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1096.     -DCK_CURSES -DSTERMIOX -DTCPSOCKET -DPYRAMID -K Olimit:1500 \
  1097.     $(KFLAGS)" "LIBS= -lcurses -lsocket -lnsl" "LNKFLAGS = -s"
  1098.  
  1099. #SONY NEWS, NEWS-OS 4.01C
  1100. sonynews:
  1101.     @echo Making C-Kermit $(CKVER) for SONY NEWS-OS 4.01C...
  1102.     $(MAKE) wermit "CFLAGS= -DBSD43 -DKANJI -DACUCNTRL \
  1103.     -DTCPSOCKET -O"
  1104.  
  1105. #SUNPOSIX
  1106. #SunOS 4.1.x in the POSIX universe (but with HDB UUCP added)...
  1107. sunposix:
  1108.     @echo Making C-Kermit $(CKVER) for POSIX...
  1109.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2= /usr/5bin/cc " \
  1110.     "CFLAGS= -DPOSIX -DHDBUUCP -DVOID=void -O"
  1111.  
  1112. #IBM's AIX 3.0 on IBM 370 mainframe, tested on AIX F44 thru F50.
  1113. aix370:
  1114.     @echo Making C-Kermit $(CKVER) for IBM System/370 AIX 3.0...
  1115.     $(MAKE) wermit \
  1116.     "CFLAGS= -DAIX370 -DTCPSOCKET -DLCKDIR -DDIRENT -DDYNAMIC $(KFLAGS)" \
  1117.     "LIBS = -lbsd"
  1118.  
  1119. #IBM's AIX/ESA 2.1 (OSF/1) on IBM mainframe
  1120. aixesa:
  1121.     @echo Making C-Kermit $(CKVER) for IBM AIX/ESA...
  1122.     $(MAKE) wermit "CFLAGS= -DAIXESA -DDYNAMIC -DTCPSOCKET $(KFLAGS) -O"
  1123.  
  1124. #IBM's AIX 1.3 on IBM PS/2, tested on AIX F44 thru F50.
  1125. #This is exactly the same as AIX370 except for the version herald.
  1126. ps2aix3:
  1127.     @echo Making C-Kermit $(CKVER) for IBM PS/2 AIX 3.0...
  1128.     $(MAKE) wermit \
  1129.     "CFLAGS= -DAIXPS2 -DTCPSOCKET -DLCKDIR -DDIRENT -DDYNAMIC $(KFLAGS)" \
  1130.     "LIBS = -lbsd"
  1131.  
  1132. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000.
  1133. rs6000:
  1134.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  1135.     $(MAKE) wermit \
  1136.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1137.     -DCK_POLL -DNOSETBUF -DCLSOPN -DKANJI -O $(KFLAGS)" "LNKFLAGS = -s"
  1138.  
  1139. #IBM AIX 3.0, 3.1, or 3.2 for RISC System/6000, with curses.
  1140. rs6000c:
  1141.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.0 or 3.1, RS/6000...
  1142.     $(MAKE) wermit \
  1143.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR3 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1144.     -DCK_POLL -DNOSETBUF -DCLSOPN -DCK_CURSES -DKANJI -O $(KFLAGS)" \
  1145.     "LIBS= -lcurses -ltermcap" "LNKFLAGS = -s"
  1146.  
  1147. #IBM AIX 3.2 for RISC System/6000.
  1148. #In case of "subprogram too complex" warnings, add "-qmaxmem=4000" to CFLAGS.
  1149. rs6aix32:
  1150.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000...
  1151.     $(MAKE) wermit \
  1152.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1153.     -DCLSOPN -DKANJI -DCK_POLL -O $(KFLAGS)" "LNKFLAGS = -s"
  1154.  
  1155. #IBM AIX 3.2 for RISC System/6000.
  1156. #In case of "subprogram too complex" warnings, add "-qmaxmem=4000" to CFLAGS.
  1157. rs6aix32c:
  1158.     @echo Making C-Kermit $(CKVER) for IBM AIX 3.2, RS/6000, curses...
  1159.     $(MAKE) wermit \
  1160.     "CFLAGS= -DAIXRS -DTCPSOCKET -DSVR4 -DDIRENT -DDYNAMIC -DCK_ANSIC \
  1161.     -DCLSOPN -DCK_CURSES -DKANJI -DCK_POLL -O $(KFLAGS)" "LNKFLAGS = -s" \
  1162.     "LIBS=-lcurses"
  1163.  
  1164. #Sun UNIX 3.5 with gcc 2.3.3.
  1165. sunos3gcc:
  1166.     @echo Making C-Kermit $(CKVER) for Sun UNIX 3.5 and gcc...
  1167.     $(MAKE) wermit CC=gcc CC2=gcc \
  1168.     CFLAGS="-g -O -DBSD4 -DTCPSOCKET $(KFLAGS)"
  1169.  
  1170. #SunOS version 4.0, BSD environment, has saved original euid feature.
  1171. # Add "CC=/usr/ucb/cc CC2=/usr/ucb/cc" if necessary.
  1172. sunos4:
  1173.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, BSD environment...
  1174.     $(MAKE) wermit "CFLAGS= -O -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID \
  1175.     -DKANJI -DDYNAMIC $(KFLAGS)"
  1176.  
  1177. #As above, but with SunLink X.25 support
  1178. sunos4x25:
  1179.     @echo SunLink X.25 support
  1180.     $(MAKE) "MAKE=$(MAKE)" sunos4 "KFLAGS=$(KFLAGS) -DSUNX25"
  1181.  
  1182. #SUN OS version 4.1, BSD environment, has saved original euid feature.
  1183. #Uses Honey DanBer UUCP.  Requires presence of /usr/spool/locks directory.
  1184. # /var/spool/ should be a symbolic link to  /usr/spool/.
  1185. # ... or 'make wermit "CC= /usr/ucb/cc " \'
  1186. sunos41:
  1187.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD...
  1188.     $(MAKE) wermit \
  1189.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET -DNOSETBUF \
  1190.     -DKANJI -DSAVEDUID -DDYNAMIC $(KFLAGS)"
  1191.  
  1192. #As above, but compile with gcc.  Reportedly gives 24-32K size reduction
  1193. #with gcc 2.1 or 2.2.2.  CAUTION: make sure "fixincludes" has been run on
  1194. #the include files, so gcc's are in sync with the regular Sun ones!
  1195. #Includes the curses library for fullscreen file transfer display.
  1196. sunos41gcc:
  1197.     @echo Making C-Kermit $(CKVER) for SunOS 4.1/BSD with gcc and curses...
  1198.     $(MAKE) wermit "CC= gcc " "CC2= gcc" \
  1199.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET -DNOSETBUF \
  1200.     -DSAVEDUID -DDYNAMIC -DKANJI -DCK_CURSES $(KFLAGS)" \
  1201.     "LIBS= -lcurses -ltermcap"
  1202.  
  1203. #SUNOS 4.1 as sunos41 above, but also with curses support
  1204. sunos41c:
  1205.     @echo Curses support
  1206.     $(MAKE) "MAKE=$(MAKE)" sunos41 "KFLAGS=$(KFLAGS) -DCK_CURSES" \
  1207.     "LIBS= -lcurses -ltermcap"
  1208.  
  1209. #SUNOS 4.1 with SunLink X.25 support
  1210. sunos41x25:
  1211.     @echo SunLink X.25 support
  1212.     $(MAKE) "MAKE=$(MAKE)" sunos41 "KFLAGS=$(KFLAGS) -DSUNX25"
  1213.  
  1214. #SUNOS 4.1 with SunLink X.25 support
  1215. sunos41x25c:
  1216.     @echo SunLink X.25 support, curses
  1217.     $(MAKE) "MAKE=$(MAKE)" sunos41c "KFLAGS=$(KFLAGS) -DSUNX25"
  1218.  
  1219. #SUN with Solaris 2.0 = SunOS 5.0.
  1220. #Mostly the same as System V R4.
  1221. #The nsl library contains a partab symbol, so Kermit's must be redefined.
  1222. sunsol20:
  1223.     @echo 'Making C-Kermit $(CKVER) for Sun with Solaris 2.0 and curses...'
  1224.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DSOLARIS -Dpartab=partbl \
  1225.     -DDIRENT -DHDBUUCP -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES \
  1226.     -DCK_POLL $(KFLAGS)" \
  1227.     "LIBS= -lsocket -lnsl -lcurses -ltermlib" "LNKFLAGS = -s"
  1228.  
  1229. #SUN with Solaris 2.0.
  1230. #As above, but built with the gcc compiler from the CD-ROM.
  1231. sunsol20gcc:
  1232.     @echo 'Making C-Kermit $(CKVER) for Sun Solaris 2.0, gcc, and curses..'
  1233.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DSOLARIS -Dpartab=partbl \
  1234.     -DDIRENT -DHDBUUCP -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES \
  1235.     -DCK_POLL $(KFLAGS)" \
  1236.     "LIBS= -lsocket -lnsl -lcurses -ltermlib" "LNKFLAGS = -s" \
  1237.     CC=/opt/cygnus-sol2-1.1/bin/gcc CC2=/opt/cygnus-sol2-1.1/bin/gcc
  1238.  
  1239. #SunOS 5.1 = Solaris 2.1.
  1240. #NOTE: A C compiler is no longer bundled with SunOS 5.1, so to compile C
  1241. #programs, you might have to change your PATH to include the directory
  1242. #/usr/ccs/bin AFTER the directory containing the compiler.  SunPRO C is
  1243. #installed by default in /opt/SUNWspro/bin.  So a sample PATH might be:
  1244. #
  1245. # /usr/local/bin:/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin:
  1246. # /usr/ucb:/usr/sbin:/sbin:.
  1247. #
  1248. #NOTE 2: Compilation with the Apogee C compiler (apcc) might not work,
  1249. #because it refuses to allow "-Usun".  Reportedly, newer releases of apcc
  1250. #(such as 1.057) work OK, use: "make -e sunos51 CC=apcc CC2=apcc".
  1251. sunos51:
  1252.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x....'
  1253.     $(MAKE) wermit "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP \
  1254.     -DCK_POLL -DDYNAMIC -DNODEBUG -DSTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
  1255.  
  1256. #As above, but with gcc.  Tested with gcc 2.3.3.
  1257. sunos51cgcc:
  1258.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.x with gcc....'
  1259.     $(MAKE) wermit CC=gcc CC2=gcc "CFLAGS = -g -O -Usun -DSVR4 -DSOLARIS \
  1260.     -DCK_POLL -DCK_CURSES -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS)" \
  1261.     "LIBS= -ltermlib"
  1262.  
  1263. #SunOS 5.1.  As above, but with TCP/IP support added.
  1264. #partab redefined to avoid conflict with /usr/lib/libnsl.so.
  1265. sunos51tcp:
  1266.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.1 + TCP....'
  1267.     $(MAKE) wermit "CFLAGS = -O -Usun -DSVR4 -DSOLARIS -DDIRENT -DHDBUUCP \
  1268.     -Dpartab=partbl -DCK_POLL -DDYNAMIC -DNODEBUG -DSTERMIOX \
  1269.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS= -lsocket -lnsl"
  1270.  
  1271. #SunOS 5.1.  As above, but with TCP/IP and curses support added.
  1272. sunos51tcpc:
  1273.     @echo 'Making C-Kermit $(CKVER) for SunOS 5.1 + TCP + curses....'
  1274.     $(MAKE) wermit "CFLAGS = -O -Usun -DSVR4 -DDIRENT -DSOLARIS -DHDBUUCP \
  1275.     -DDYNAMIC -Dpartab=partbl -DCK_POLL -DCK_CURSES -DNODEBUG -DSTERMIOX \
  1276.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS= -ltermlib -lsocket -lnsl"
  1277.  
  1278. #The following sunosxxx entries are for debugging and testing only.
  1279.  
  1280. #As above, debugging with Pure Software, Inc., Purify 2 (commercial runtime
  1281. #error-detection software).
  1282. #Before running the resulting wermit, you'll also need to define and export
  1283. #the following environment variables (as in this example):
  1284. #PURIFYHOME=/usr/local/purify ; export PURIFYHOME
  1285. #PURIFYCACHEDIR=/tmp ; export PURIFYCACHEDIR
  1286. sunos41cp:
  1287.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 / BSD / Curses / Purify...
  1288.     $(MAKE) wermit "CC2= purify -cache_dir=/usr/tmp cc" \
  1289.     "CFLAGS= -g -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET -DNOSETBUF \
  1290.     -DKANJI -DSAVEDUID -DDYNAMIC -DCK_CURSES $(KFLAGS)" \
  1291.     "LIBS= -lcurses -ltermcap"
  1292.  
  1293. #SUN OS version 4.1, gcc, profiling with gprof, no debugging.
  1294. #To get profile, "make sunos4p" (on Sun), then "./wermit".  After running
  1295. #wermit, "gprof ./wermit | lpr" (or whatever) to get execution profile.
  1296. sunos41p:
  1297.     @echo Making C-Kermit $(CKVER) for SunOS 4.x with profiling...
  1298.     $(MAKE) wermit "CC= gcc " "CC2= gcc" \
  1299.     "CFLAGS= -DSUNOS41 -DNODEBUG -DSAVEDUID -DDIRENT -DTCPSOCKET \
  1300.     -DDYNAMIC $(KFLAGS) -pg" "LNKFLAGS = -pg"
  1301.  
  1302. #SUN OS version 4.0, BSD environment, minimum size...
  1303. sunos4m:
  1304.     @echo Minimum size
  1305.     $(MAKE) "MAKE=$(MAKE)" sunos4 \
  1306.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1307.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND" "LNKFLAGS = -s"
  1308.  
  1309. #SUN OS version 4.1, BSD environment, minimum size...
  1310. sunos41m:
  1311.     @echo Minimum size
  1312.     $(MAKE) "MAKE=$(MAKE)" sunos41 \
  1313.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1314.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  1315.  
  1316. #SUN OS version 4.0, BSD environment, minimum size w/command parser.
  1317. sunos4mi:
  1318.     @echo Minimum interactive
  1319.     $(MAKE) "MAKE=$(MAKE)" sunos4 \
  1320.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS \
  1321.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  1322.     -DNOSETKEY -DNOSHOW -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1323.  
  1324. #SUN OS version 4.1 or later, BSD environment, minimum size w/command parser.
  1325. sunos41mi:
  1326.     @echo Minimum interactive
  1327.     $(MAKE) "MAKE=$(MAKE)" sunos41 \
  1328.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS \
  1329.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS \
  1330.     -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  1331.     -DNOSETBUF -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ \
  1332.     -DNOCMDL -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1333.  
  1334. #SUN OS version 4.1 or later, BSD, no debugging log.
  1335. sunos41nd:
  1336.     @echo No debugging...
  1337.     $(MAKE) "MAKE=$(MAKE)" sunos41 "KFLAGS=$(KFLAGS) -DNODEBUG"
  1338.  
  1339. #SUNOS 4.1 with malloc debugger
  1340. sunos41md:
  1341.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 malloc debug...
  1342.     $(MAKE) mermit \
  1343.     "CFLAGS= -O -DSUNOS41 -DHDBUUCP -DDIRENT -DTCPSOCKET \
  1344.     -DSAVEDUID -DDYNAMIC $(KFLAGS) -Dmalloc=dmalloc -Dfree=dfree -DMDEBUG"
  1345.  
  1346. #SUN OS version 4.0, System V R3 environment (-i option omitted).
  1347. sunos4s5:
  1348.     @echo Making C-Kermit $(CKVER) for SunOS 4.0, System V R3...
  1349.     @echo For testing purposes only - NOT for production use.
  1350.     @echo For a useable version, make sunos4 instead.
  1351.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2= /usr/5bin/cc " \
  1352.     "CFLAGS = -DDIRENT -DSUN4S5 -DDYNAMIC $(KFLAGS) -O"
  1353.  
  1354. #SUN OS version 4.1 or later, System V R3 environment (-i option omitted).
  1355. #Like sunos4s5, but SUNOS 4.1 has switched to HDB UUCP lockfile conventions.
  1356. sunos41s5:
  1357.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  1358.     @echo For testing purposes only - NOT for production use.
  1359.     @echo For a useable version, make sunos41 instead.
  1360.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  1361.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DDYNAMIC -DCK_POLL $(KFLAGS) -O"
  1362.  
  1363. #As above, but with curses support
  1364. sunos41s5c:
  1365.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  1366.     @echo Curses included.
  1367.     @echo For testing purposes only - NOT for production use.
  1368.     @echo For a useable version, make sunos41 instead.
  1369.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  1370.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1371.     -DCK_CURSES -DCK_POLL -DCK_NEWTERM $(KFLAGS) -O" "LIBS= -lcurses"
  1372.  
  1373. #As above, but with curses support AND net support
  1374. sunos41s5tcpc:
  1375.     @echo Making C-Kermit $(CKVER) for SunOS 4.1 System V R3...
  1376.     @echo TCP/IP and curses included.  No debug log.
  1377.     @echo For testing purposes only - NOT for production use.
  1378.     @echo For a useable version, make sunos41 instead.
  1379.     $(MAKE) wermit "CC= /usr/5bin/cc " "CC2=/usr/5bin/cc " \
  1380.     "CFLAGS = -DSUN4S5 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSETBUF -DCK_POLL \
  1381.     -DNODEBUG -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET $(KFLAGS) -O" \
  1382.     "LIBS= -lcurses -lresolv"
  1383.  
  1384. #Apollo with Domain SR10.0 or later, BSD environment
  1385. #Reportedly, it might also help to add '-A,systype=bsd4.3' to CFLAGS.
  1386. #Reportedly, there is also a problem with getc & putc macros that can
  1387. #be handled by using '#ifdef apollo' somewhere to redefine them???
  1388. #On the other hand, other reports indicate that it works fine as-is.
  1389. #NOTE: This entry was previously like this:
  1390. #    $(MAKE) wermit "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis \
  1391. #    -DTCPSOCKET -U__STDC__"
  1392. #Reports (Dec 91) indicate SR10 has an ANSI-compliant C compiler,
  1393. #in addition to an older one that claimed to be ANSI-compliant but wasn't.
  1394. #The following make entry (plus checks that are made in ckcdeb.h) detect
  1395. #which compiler is used and define the CK_ANSIC or NOANSI flags accordingly.
  1396. sr10-bsd:
  1397.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / BSD ...
  1398.     $(MAKE) wermit \
  1399.     "CFLAGS= -O -DDYNAMIC -DBSD43 -DTCPSOCKET -DCK_CURSES \
  1400.     -Uaegis $(KFLAGS)" "LIBS= -lcurses -ltermcap"
  1401.  
  1402. #Apollo with Domain SR10.0 or later, System V R3 environment.
  1403. #Don't use the optimizer (-O), it causes problems at runtime.
  1404. sr10-s5r3:
  1405.     @echo Making C-Kermit $(CKVER) for Apollo SR10.0 / Sys V R3 ...
  1406.     $(MAKE) wermit "CFLAGS= -DNOFILEH -DSVR3 $(KFLAGS) -Uaegis -U__STDC__"
  1407.  
  1408. #Apollo Domain/IX (untested, try this if sr10-bsd doesn't work)
  1409. # -DTCPSOCKET -DYNAMIC can probably be added here.
  1410. apollobsd:
  1411.     @echo Making C-Kermit $(CKVER) for Apollo Domain/IX...
  1412.     $(MAKE) wermit "CC= /bin/cc " "CC2= /bin/cc " \
  1413.     "CFLAGS= -DNOFILEH -DBSD4 $(KFLAGS) -Uaegis"
  1414.  
  1415. #Version 7 Unix (see comments near top of makefile)
  1416. v7:
  1417.     @echo Making C-Kermit $(CKVER) for UNIX Version 7.
  1418.     @echo Read the makefile if you have trouble with this...
  1419.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  1420.     -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  1421.     -DNPTYPE=$(NPTYPE) $(DIRECT) -DO_RDWR=2 -DO_NDELAY=0 -DO_SCCS_ID \
  1422.     $(KFLAGS)"
  1423.  
  1424. #AT&T UNIX System V R3, signal() is void rather than int.
  1425. #Uses dirent.h and Honey DanBer UUCP.
  1426. #Add the -i link option if necessary.
  1427. sys5r3:
  1428.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1429.     $(MAKE) wermit \
  1430.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" \
  1431.     "LNKFLAGS="
  1432.  
  1433. #AT&T UNIX System V R3.  As above, but no ANSI prototyping.
  1434. sys5r3na:
  1435.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1436.     $(MAKE) wermit \
  1437.     "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOANSI $(KFLAGS) -O" \
  1438.     "LNKFLAGS="
  1439.  
  1440. #AT&T UNIX System V R3, for 3B computers with Wollongong TCP/IP.
  1441. sys5r3net3b:
  1442.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX SVR3/3B/Wollongong...'
  1443.     $(MAKE) wermit \
  1444.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DWOLLONGONG $(KFLAGS) \
  1445.     -O" "LIBS= -lnet -lnsl_s" "LNKFLAGS ="
  1446.  
  1447. #AT&T UNIX System V R3, signal() is void rather than int.
  1448. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  1449. #Has <termiox.h> for RTS/CTS flow control.
  1450. sys5r3tx:
  1451.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1452.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1453.     -DTERMIOX $(KFLAGS) -i -O" "LNKFLAGS ="
  1454.  
  1455. #AT&T UNIX System V R3, signal() is void rather than int.
  1456. #Uses dirent.h and Honey DanBer uucp, has <termiox.h>.
  1457. #Has <sys/termiox.h> for RTS/CTS flow control.
  1458. sys5r3sx:
  1459.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R3...'
  1460.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1461.     -DSTERMIOX $(KFLAGS) -i -O" "LNKFLAGS ="
  1462.  
  1463. #AT&T UNIX System V R4.
  1464. #Has <termiox.h>.
  1465. sys5r4:
  1466.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1467.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1468.     -DTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
  1469.  
  1470. #AT&T UNIX System V R4 with Wollongong TCP/IP.
  1471. #Has <termiox.h>.
  1472. sys5r4net:
  1473.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1474.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1475.     -DTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  1476.  
  1477. #DELL UNIX System V R4.
  1478. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1479. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1480. #Uses ANSI C constructs, advisory file locking on devices, etc.
  1481. #Warning: -DSTERMIOX enables hardware flow control (RTS/CTS), but reportedly
  1482. #this does not work with the normal drivers.  However, it might still work
  1483. #on non-Dell systems, or even Dell systems with different drivers installed.
  1484. dellsys5r4:
  1485.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1486.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  1487.     -DDYNAMIC -DTCPSOCKET -DSTERMIOX -DCK_POLL -DKANJI $(KFLAGS)" \
  1488.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  1489.  
  1490. #As above, curses support added...
  1491. dellsys5r4c:
  1492.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1493.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DHDBUUCP \
  1494.     -DDYNAMIC -DTCPSOCKET -DSTERMIOX -DKANJI -DCK_CURSES -DCK_POLL \
  1495.     $(KFLAGS)" "LIBS= -lsocket -lnsl -lcurses -ltermcap" "LNKFLAGS = -s"
  1496.  
  1497. #Mininum interactive: As above, but with every conceivable option removed.
  1498. dellsys5r4mi:
  1499.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1500.     @echo 'Minimum-size interactive'
  1501.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT \
  1502.     -DDYNAMIC -UTCPSOCKET -DNOCMDL -DNOSPL -DNOXMIT -DCK_POLL \
  1503.     -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1504.     -DNOSCRIPT -DNOCSETS -DNOSHOW -DNOSETKEY -DNOSERVER -DNOUUCP \
  1505.     -DNOSETBUF -DNOPUSH -DNOMDMHUP -DNOJC -DNOFDZERO -DNOESCSEQ  \
  1506.     $(KFLAGS)" "LNKFLAGS = -s"
  1507.  
  1508. #Command-line only version.
  1509. dellsys5r4m:
  1510.     @echo 'Making C-Kermit $(CKVER) for DELL UNIX System V R4...'
  1511.     @echo 'Command-line only'
  1512.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDELL_SVR4 -DDIRENT -DDYNAMIC \
  1513.     -UTCPSOCKET -DNOICP -DNOFRILLS -DNODIAL -DNODEBUG -DNOTLOG -DNOCSETS \
  1514.     -DNOSETKEY -DNOESCSEQ -DNOSETBUF -DNOJC -DNOFDZERO -DCK_POLL \
  1515.     $(KFLAGS)" "LNKFLAGS = -s"
  1516.  
  1517. #AT&T UNIX System V R4.
  1518. #Has <sys/termiox.h>.
  1519. sys5r4sx:
  1520.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1521.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1522.     -DSTERMIOX $(KFLAGS)" "LNKFLAGS = -s"
  1523.  
  1524. #AT&T UNIX System V R4.
  1525. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1526. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1527. #Uses ANSI C constructs, <sys/termiox.h>, etc etc.
  1528. sys5r4sxtcp:
  1529.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1530.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1531.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1532.     "LIBS= -lsocket -lnsl" "LNKFLAGS = -s"
  1533.  
  1534. #Univel UnixWare
  1535. unixware:
  1536.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx "KFLAGS=-DUNIVEL"
  1537.  
  1538. #Smallest possible version of above
  1539. s5r4m:
  1540.     @echo Minimum size
  1541.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  1542.     "KFLAGS=$(KFLAGS) -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  1543.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOMSEND -UTCPSOCKET" "LNKFLAGS = -s"
  1544.  
  1545. #Smallest possible interactive version of above
  1546. s5r4mi:
  1547.     @echo Minimum interactive
  1548.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx \
  1549.     "KFLAGS=-DNOSPL -DNOXMIT -DNOMSEND -DNOFRILLS -DNOSHOW \
  1550.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOSETKEY \
  1551.     -UTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1552.  
  1553. #AT&T UNIX System V R4, has <sys/termiox.h>
  1554. #ANSI C function prototyping disabled.
  1555. sys5r4sxna:
  1556.     @echo No ANSI C prototyping...
  1557.     $(MAKE) "MAKE=$(MAKE)" sys5r4sx "KFLAGS=$(KFLAGS) -DNOANSI"
  1558.  
  1559. #Commodore Amiga with AT&T UNIX System V R4 and TCP/IP support.
  1560. #Has <sys/termiox.h>.
  1561. svr4amiganet:
  1562.     @echo 'Making C-Kermit $(CKVER) for Amiga SVR4 + TCP/IP...'
  1563.     $(MAKE) wermit "CC=gcc" "CC2=gcc" \
  1564.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC -DSTERMIOX \
  1565.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS = -lsocket -lnsl"
  1566.  
  1567. #ESIX SVR4.0.3 with TCP/IP support.
  1568. #Has <sys/termiox.h>, ANSI C function prototyping disabled.
  1569. esixr4:
  1570.     @echo 'Making C-Kermit $(CKVER) for ESIX SVR4 + TCP/IP...'
  1571.     $(MAKE) wermit \
  1572.     "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOANSI \
  1573.     -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" \
  1574.     "LIBS = -lsocket -lnsl"
  1575.  
  1576. #AT&T UNIX System V R4.
  1577. #Has <sys/termiox.h>, Wollongong TCP/IP.
  1578. sys5r4sxnet:
  1579.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1580.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1581.     -DSTERMIOX -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  1582.  
  1583. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>.
  1584. sys5r4nx:
  1585.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1586.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1587.     $(KFLAGS)" "LNKFLAGS = -s"
  1588.  
  1589. #AT&T UNIX System V R4, no <termio.x> or <sys/termio.x>, has Wollongong TCP/IP.
  1590. sys5r4nxnet:
  1591.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System V R4...'
  1592.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP -DDYNAMIC \
  1593.     -DWOLLONGONG $(KFLAGS)" "LNKFLAGS = -s"
  1594.  
  1595. #ICL UNIX System V R4.(DRS N/X) version :-
  1596. #UNIX System V Release 4.0 ICL DRS 6000 (SPARC)
  1597. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  1598. #Has <sys/termiox.h>, regular Berkeley sockets library, i.e. in.h and inet.h
  1599. #are not misplaced in sys (rather than netinet and arpa, respectively).
  1600. #Uses ANSI C constructs, advisory file locking on devices, etc.
  1601. iclsys5r4:
  1602.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  1603.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP \
  1604.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1605.     "LIBS= -lsocket " "LNKFLAGS = -s"
  1606.  
  1607. #ICL UNIX System V R4.(DRS N/X) version :-
  1608. #UNIX System V Release 4.0 ICL DRS 3000 (486)
  1609. #DRS/NX 6000 SVR4 Version 5  Level 1  Increment 4
  1610. #As above, but also needs -lnsl.
  1611. iclsys5r4_486:
  1612.     @echo 'Making C-Kermit $(CKVER) for ICL UNIX System V R4 (DRS N/X)'
  1613.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DICL_SVR4 -DDIRENT -DHDBUUCP \
  1614.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET $(KFLAGS)" \
  1615.     "LIBS= -lsocket -lnsl " "LNKFLAGS = -s"
  1616.  
  1617. #Data General DG/UX 4.30 (System V R3) for DG Aviion, with TCP/IP support.
  1618. dgux430:
  1619.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 4.30...'
  1620.     $(MAKE) wermit "CFLAGS = -O -DDGUX430 -DSVR3 -DDIRENT -DDYNAMIC \
  1621.     -DTCPSOCKET $(KFLAGS)"
  1622.  
  1623. #Data General DG/UX 4.30 for DG Aviion, with TCP/IP support with BSDisms.
  1624. dgux430bsd:
  1625.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 4.30...'
  1626.     $(MAKE) wermit "CFLAGS = -O -DDGUX430 -D_BSD_SOURCE -DBSD4 \
  1627.     -DDYNAMIC -DTCPSOCKET $(KFLAGS)"
  1628.  
  1629. #Data General DG/UX 5.4 (System V R4) for DG Aviion, with TCP/IP support.
  1630. dgux540:
  1631.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 5.40...'
  1632.     $(MAKE) wermit "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP \
  1633.     -DKANJI -DDYNAMIC -DSTERMIOX -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s"
  1634.  
  1635. dgux54:
  1636.     make dgux540
  1637.  
  1638. #Data General DG/UX 5.4 (= System V R4) for DG Aviion, with TCP/IP support.
  1639. # And curses.
  1640. dgux540c:
  1641.     @echo 'Making C-Kermit $(CKVER) for DG Aviion DG/UX 5.4...'
  1642.     $(MAKE) wermit "CFLAGS = -O -DDGUX540 -DDIRENT -DHDBUUCP \
  1643.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  1644.     "LIBS= -lcurses8 -ltermcap" "LNKFLAGS = -s"
  1645.  
  1646. dgux54c:
  1647.     make dgux540c
  1648.  
  1649. #Silicon Graphics System V R3 with BSD file system (IRIS)
  1650. iris:
  1651.     @echo Making C-Kermit $(CKVER) for Silicon Graphics IRIX pre-3.3...
  1652.     $(MAKE) wermit "CFLAGS = -O -DSVR3 -DLONGFN  $(KFLAGS) \
  1653.     -I/usr/include/bsd" "LIBS = -lbsd"
  1654.  
  1655. #Silicon Graphics IRIS System V R3
  1656. irix33:
  1657.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 3.3...'
  1658.     $(MAKE) wermit \
  1659.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC $(KFLAGS) -O" \
  1660.     "LNKFLAGS ="
  1661.  
  1662. #Silicon Graphics Iris Indigo with IRIX 4.0.0 or 5.0...
  1663. #Strict ANSI C compilation, TCP/IP support included
  1664. irix40:
  1665.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0...'
  1666.     $(MAKE) wermit \
  1667.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DPWID_T=uid_t \
  1668.     -DCK_ANSIC -DTCPSOCKET $(KFLAGS) -O -Olimit 1350 -I/usr/include/bsd"
  1669.  
  1670. #As above, but with fullscreen display (curses) and Sun Yellow Pages support.
  1671. irix40ypc:
  1672.     @echo 'Making C-Kermit $(CKVER) for Silicon Graphics IRIX 4.0.'
  1673.     @echo 'Includes fullscreen file display and Sun Yellow Pages...'
  1674.     $(MAKE) wermit \
  1675.     "CFLAGS = -DIRIX40 -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DCK_CURSES \
  1676.     -DPWID_T=uid_t -DCK_ANSIC -DTCPSOCKET $(KFLAGS) \
  1677.     -O -Olimit 1350 -I/usr/include/bsd" \
  1678.     "LIBS = -lcurses -lsun" "LNKFLAGS = -s"
  1679.  
  1680. #In case they type "make sys5"...
  1681. sys5:
  1682.     $(MAKE) "MAKE=$(MAKE)" sys3
  1683.  
  1684. #Generic ATT System III or System V (with I&D space)
  1685. sys3:
  1686.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1687.     @echo 'or System V R2 or earlier...'
  1688.     $(MAKE) wermit "CFLAGS = -DATTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  1689.  
  1690. #Generic ATT System III or System V R2 or earlier, "no void":
  1691. #special entry to remove "Illegal pointer combination" warnings.
  1692. sys3nv:
  1693.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1694.     @echo 'or System V R2 or earlier...'
  1695.     $(MAKE) wermit "CFLAGS = -DATTSV -Dvoid=int  $(KFLAGS) -i -O" \
  1696.     "LNKFLAGS = -i"
  1697.  
  1698. #Generic ATT System III or System V (no I&D space)
  1699. sys3nid:
  1700.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1701.     @echo 'or System V R2 or earlier, no I&D space...'
  1702.     $(MAKE) wermit "CFLAGS = -DATTSV $(KFLAGS) -O" "LNKFLAGS ="
  1703.  
  1704. #AT&T 7300/UNIX PC (3B1) systems, sys3 but special handling for internal modem.
  1705. #Link with the shared library -- the conflict with openi in shared library
  1706. #is solved with -Dopeni=xopeni
  1707. sys3upc:
  1708.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  1709.     @echo 'If shared lib causes trouble, use make sys3upcold.'
  1710.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF $(KFLAGS) \
  1711.     -Dopeni=xopeni" \
  1712.     "CC2 = ld /lib/crt0s.o /lib/shlib.ifile" "LNKFLAGS = -s"
  1713.  
  1714. #AT&T 7300/UNIX PC (3B1) systems, with curses support.
  1715. #Curses and the shared library don't get along, so we don't use the
  1716. #shared library.  We need to include CK_NEWTERM to avoid a conflict
  1717. #with curses and buffering on stdout.  Merged with submission by
  1718. #Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu.
  1719. #We don't need -Dopeni=xopeni since we're not using the shared library,
  1720. #but we keep it to be consistent with the other entries.
  1721. sys3upcc:
  1722.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  1723.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF \
  1724.     -DCK_CURSES -DCK_NEWTERM $(KFLAGS) -Dopeni=xopeni" \
  1725.     "LIBS = -lcurses" "LNKFLAGS = -s"
  1726.  
  1727. #AT&T 7300 UNIX PC (3B1), as above, but no newterm().
  1728. sys3upcx:
  1729.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  1730.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF \
  1731.     -DCK_CURSES $(KFLAGS) -Dopeni=xopeni" \
  1732.     "LIBS = -lcurses -ltermcap" "LNKFLAGS = -s"
  1733.  
  1734. #AT&T 7300/UNIX PC (3B1) systems, with curses and shared library support.
  1735. sys3upcshcc:
  1736.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, shared lib...'
  1737.     @echo 'With curses.  Requires shcc.'
  1738.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC $(KFLAGS) \
  1739.     -DNOSETBUF -DCK_NEWTERM -DCK_CURSES -Dopeni=xopeni" \
  1740.     "LNKFLAGS = -i -s" "CC = shcc" "CC2 = shcc" "LIBS = -lcurses"
  1741.  
  1742. #AT&T 7300/UNIX PC (3B1) systems, as above, no curses, but use gcc.
  1743. sys3upcg:
  1744.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  1745.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF $(KFLAGS) \
  1746.     -Dopeni=xopeni" \
  1747.     "CC = gcc" "CC2 = gcc" "LNKFLAGS = -s -shlib"
  1748.  
  1749. #AT&T 7300/UNIX PC (3B1) systems, curses and gcc.
  1750. sys3upcgc:
  1751.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC, curses...'
  1752.     $(MAKE) wermit "CFLAGS = -O -DATT7300 -DDYNAMIC -DNOSETBUF \
  1753.     -DCK_CURSES -DIFDEBUG -DCK_NEWTERM $(KFLAGS)" \
  1754.     "CC = gcc" "CC2 = gcc" "LIBS = -lcurses" "LNKFLAGS = -s"
  1755.  
  1756. #AT&T 7300/UNIX PC (3B1) systems, special handling for internal modem.
  1757. #No FULLSCREEN file transfer display (curses).
  1758. sys3upcold:
  1759.     @echo 'Making C-Kermit $(CKVER) for AT&T 7300 UNIX PC...'
  1760.     $(MAKE) wermit "CFLAGS = -DATT7300 $(KFLAGS) -O" "LNKFLAGS = -i"
  1761.  
  1762. #AT&T 6300 PLUS (warning, -O might make it run out of space).
  1763. #NOTE: Remove -DHDBUUCP if not using Honey DanBer UUCP.
  1764. att6300:
  1765.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  1766.     $(MAKE) wermit "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH \
  1767.     $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml"
  1768.  
  1769. #As above, but with curses support.  Debugging disabled to prevent thrashing.
  1770. att6300c:
  1771.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS...'
  1772.     $(MAKE) wermit "CFLAGS = -DATT6300 -DHDBUUCP -DNOFILEH -DNOCSETS \
  1773.     -DCK_CURSES -DNODEBUG $(KFLAGS) -O -Ml -i" "LNKFLAGS = -i -Ml" \
  1774.     "LIBS = -lcurses"
  1775.  
  1776. #AT&T 6300 PLUS with no curses, no debugging (about 34K smaller)
  1777. # -Optimization saves about 20K too.
  1778. att6300nd:
  1779.     @echo 'Making C-Kermit $(CKVER) for AT&T 6300 PLUS, no debugging...'
  1780.     $(MAKE) wermit \
  1781.     "CFLAGS = -DATT6300 -DHDBUUCP -DNODEBUG -DNOFILEH $(KFLAGS) \
  1782.     -O -i -Ml" "LNKFLAGS = -i -Ml"
  1783.  
  1784. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V.
  1785. #This is just generic System V with Honey DanBer UUCP, so refer to sys3hdb.
  1786. att3bx:
  1787.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  1788.  
  1789. #AT&T 3B2, 3B20-series computers running AT&T UNIX System V,
  1790. #with fullscreen file transfer display
  1791. att3bxc:
  1792.     @echo 'Making C-Kermit $(CKVER) for AT&T 3B2 or 3B20'
  1793.     @echo 'with Honey DanBer UUCP and curses...'
  1794.     $(MAKE) wermit "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) \
  1795.         -DCK_CURSES -DCK_NEWTERM -i -O" \
  1796.     "LNKFLAGS = -i" "LIBS=-lcurses"
  1797.  
  1798. #Any System V R2 or earlier with Honey DanBer UUCP (same as above)
  1799. sys3hdb:
  1800.     @echo 'Making C-Kermit $(CKVER) for AT&T UNIX System III'
  1801.     @echo 'or System V R2 or earlier with Honey DanBer UUCP...'
  1802.     $(MAKE) wermit "CFLAGS = -DATTSV -DHDBUUCP $(KFLAGS) -i -O" \
  1803.     "LNKFLAGS = -i"
  1804.  
  1805. #Sperry/UNISYS 5000 UTS V 5.2 (System V R2), Honey DanBer UUCP
  1806. unisys5r2:
  1807.     @echo 'Making C-Kermit $(CKVER) for Sperry/UNISYS 5000 UTS V 5.2...'
  1808.     $(MAKE) wermit \
  1809.     "CFLAGS = -DATTSV -DUNISYS52 -DHDBUUCP $(KFLAGS) -i -O" \
  1810.     "LNKFLAGS = -i"
  1811.  
  1812. #In case they say "make sys5hdb" instead of "make sys3hdb"...
  1813. sys5hdb:
  1814.     $(MAKE) "MAKE=$(MAKE)" sys3hdb
  1815.  
  1816. #IBM PS/2 with AIX 1.0.
  1817. #  Reports indicate that -O switch must be omitted.
  1818. #  It is also possible that "made bsd" will work (reports welcome).
  1819. #  One report said "make LIBS=-lbsd bsd" did the trick.
  1820. ps2aix:
  1821.     @echo 'Making C-Kermit $(CKVER) for IBM AIX 1.0 PS/2...'
  1822.     $(MAKE) wermit \
  1823.     "CFLAGS = -DATTSV -DPS2AIX10 $(KFLAGS) -i" "LNKFLAGS = -i"
  1824.  
  1825. #IBM RT PC with AIX 2.2.1
  1826. #This one has unique and strange lockfiles.
  1827. rtaix:
  1828.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1...'
  1829.     $(MAKE) wermit \
  1830.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET \
  1831.     -DCLSOPN $(KFLAGS) -O -w" "LNKFLAGS = -s"
  1832.  
  1833. #IBM RT PC with AIX 2.2.1
  1834. #This one has unique and strange lockfiles.
  1835. rtaixc:
  1836.     @echo 'Making C-Kermit $(CKVER) for IBM RT PC, AIX 2.2.1, curses...'
  1837.     $(MAKE) wermit \
  1838.     "CFLAGS = -DATTSV -DRTAIX -DHDBUUCP -DTCPSOCKET -DCK_CURSES \
  1839.     -DCLSOPN $(KFLAGS) -O -w" "LIBS=-lcurses" "LNKFLAGS = -s"
  1840.  
  1841. #IBM RT PC with AIX 2.2.1 (BSD 4.3)
  1842. # Add -O, -DDYNAMIC, -s, etc, if they work.
  1843. rtacis:
  1844.     @echo Making C-Kermit $(CKVER) for RT PC with ACIS 2.2.1 = BSD 4.3...
  1845.     $(MAKE) wermit "CFLAGS= -DBSD4 -DTCPSOCKET $(KFLAGS) -U__STDC__" \
  1846.     "LNKFLAGS = -s"
  1847.  
  1848. #HP 9000 series 300, 500, 800, no long filenames and no job control.
  1849. #This is certainly only good for HPUX versions earlier than 6.5.
  1850. hpuxpre65:
  1851.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
  1852.     $(MAKE) wermit "CFLAGS = -DHPUX -DHPUXPRE65 $(KFLAGS) -O" "LNKFLAGS ="
  1853.  
  1854. #HP 9000 series 300, 500, 800, no long filenames.
  1855. #This is probably only good for HPUX versions earlier than 6.2.
  1856. hpux:
  1857.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
  1858.     $(MAKE) wermit "CFLAGS = -DHPUX $(KFLAGS) -O" "LNKFLAGS ="
  1859.  
  1860. #HP-9000 500 HP-UX 5.21 with Wollongong WIN/TCP 1.2 TCP/IP
  1861. #Requires /usr/wins/usr/include and /usr/lib/libnet.a from Wollongong
  1862. hpux500wintcp:
  1863.     @echo 'Making C-Kermit $(CKVER) for HP-9000 500 HP-UX 5.21 WIN/TCP'
  1864.     $(MAKE) wermit "CFLAGS = -DHPUX -DHPUXPRE65 -DTCPSOCKET -DDYNAMIC \
  1865.     -I/usr/wins/usr/include $(KFLAGS) -O" \
  1866.     "LIBS = /usr/lib/libnet.a" "LNKFLAGS = "
  1867.  
  1868. #HP-UX 7.0, no long filenames, no network support.
  1869. hpux7sf:
  1870.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, no long filenames.'
  1871.     $(MAKE) wermit "CFLAGS = -DHPUX $(KFLAGS) -DSIG_V -O" "LNKFLAGS ="
  1872.  
  1873. #HP 9000 series 300, 800, long filenames (using BSD file system)
  1874. # (This one is probably necessary for the Series 300)
  1875. hpuxlf:
  1876.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1877.     $(MAKE) wermit \
  1878.     "CFLAGS = -DHPUX -DNDIR -DLONGFN -DDYNAMIC $(KFLAGS) -O" \
  1879.     "LNKFLAGS ="
  1880.  
  1881. #HP 9000 series 300, 800, long filenames (using <dirent.h>)
  1882. hpuxde:
  1883.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1884.     $(MAKE) wermit "CFLAGS = -DHPUX -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
  1885.     "LNKFLAGS ="
  1886.  
  1887. #HP 9000 series 300, 800, long filenames (using <dirent.h>) and TCP/IP
  1888. hpuxdetcp:
  1889.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1890.     $(MAKE) wermit "CFLAGS = -DHPUX -DDIRENT -DDYNAMIC -DTCPSOCKET \
  1891.     $(KFLAGS) -O" "LNKFLAGS ="
  1892.  
  1893. #HP 9000 series 300, 800, long filenames, System V R3 or later
  1894. # (Does anybody know what is the earliest release of HP-UX based on SVR3?)
  1895. hpuxs5r3:
  1896.     @echo 'Making C-Kermit $(CKVER) for HP-9000 HP-UX, long filenames...'
  1897.     $(MAKE) wermit \
  1898.     "CFLAGS = -DHPUX -DSVR3 -DDIRENT -DTCPSOCKET -DDYNAMIC \
  1899.     -DNOSETBUF $(KFLAGS) -O" "LNKFLAGS =" "LIBS=-lBSD"
  1900.  
  1901. #HP 9000 series 800 HP-UX 7.0, long filenames, network support, HDB uucp.
  1902. #there must be <arpa/telnet.h> & <arpa/inet.h> present to support this
  1903. #configuration.  To use this, you must have bought the ARPA Services
  1904. #Product from HP, and you must get the files "telnet.h" and "inet.h"
  1905. #from the Berkeley Standard Distribution because (reportedly) they are not
  1906. #part of the HP product.  And you need /usr/lib/libBSD.a.
  1907. #
  1908. hpux70lfn:
  1909.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 7.0'
  1910.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1911.     $(MAKE) wermit "CFLAGS = -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1912.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1913.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD"
  1914.  
  1915. hpux70lfnc:
  1916.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 7.0'
  1917.     @echo 'supporting: curses, long filenames, networking, HDB uucp...'
  1918.     $(MAKE) wermit "CFLAGS = -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1919.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1920.     -DTCPSOCKET  -DCK_CURSES $(KFLAGS) -O" \
  1921.     "LIBS= -lcurses -ltermcap -lBSD" "LNKFLAGS = -s"
  1922.  
  1923. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  1924. # +Obb optimization option not available.
  1925. hpux80:
  1926.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1927.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1928.     $(MAKE) -B wermit "CFLAGS = \
  1929.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1930.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1931.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD"
  1932.  
  1933. #HP 9000 Series 300 or 400, HP-UX 8.0, long filenames and TCP/IP support.
  1934. #Fullscreen file display support via curses library.
  1935. # +Obb optimization option not available.
  1936. hpux80c:
  1937.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1938.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1939.     $(MAKE) -B wermit "CFLAGS = -DCK_CURSES \
  1940.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1941.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1942.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD -lcurses"
  1943.  
  1944. #HP 9000 HP-UX 8.0, same as 7.0 with long filenames and TCP/IP support.
  1945. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  1946. # +Obb optimization option available.
  1947. hpux80pa:
  1948.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1949.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1950.     $(MAKE) -B wermit "CFLAGS = +Obb700 \
  1951.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1952.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1953.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD"
  1954.  
  1955. #HP 9000 HP-UX 8.0, same as 7.0 with long filenames and TCP/IP support.
  1956. #HP 9000 Series 700 or 800, HP-UX 8.0, long filenames and TCP/IP support.
  1957. #Fullscreen file display support via curses library.
  1958. # +Obb optimization option available.
  1959. #(Maybe the -DSVR3 here should be -DSVR4?) (Is the final -O redundant?)
  1960. hpux80pac:
  1961.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 8.0'
  1962.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1963.     $(MAKE) -B wermit "CFLAGS = +Obb700 -DCK_CURSES \
  1964.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1965.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1966.     -DTCPSOCKET  $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lBSD -lcurses"
  1967.  
  1968. #As above, but compiled with GCC 2.3.3.
  1969. hpux80pagcc:
  1970.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX 8.0 with gcc,'
  1971.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1972.     $(MAKE) wermit CC=gcc CC2=gcc "CFLAGS = \
  1973.     -DHPUXDEBUG -DHPUX -DSVR4 -DDIRENT -DLONGFN \
  1974.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1975.     -DTCPSOCKET  $(KFLAGS) -O" "LIBS = -lBSD"
  1976.  
  1977. #HP 9000 HP-UX 8.0, no TCP/IP because /usr/lib/libBSD.a can't be found,
  1978. #or TCP/IP header files missing.
  1979. hpux80notcp:
  1980.     $(MAKE) "MAKE=$(MAKE)" hpuxde
  1981.  
  1982. #HP-UX 9.1 + TCP/IP + curses
  1983. hpux91pac:
  1984.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 9.1'
  1985.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1986.     $(MAKE)    wermit "CFLAGS = +Obb674 -DCK_CURSES \
  1987.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1988.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1989.     -DTCPSOCKET  $(KFLAGS)   " "LNKFLAGS = -s" "LIBS = -lBSD -lcurses"
  1990.  
  1991. #HP-UX 9.1 + TCP/IP + curses, as above but with HP-specific optimization
  1992. hpux91paco:
  1993.     @echo 'Making C-Kermit $(CKVER) for HP9000/8xx HP-UX V. 9.1'
  1994.     @echo 'supporting: long filenames, networking, HDB uucp...'
  1995.     $(MAKE)    wermit "CFLAGS = +Obb674 -DCK_CURSES \
  1996.     -DHPUXDEBUG -DHPUX -DSVR3 -DDIRENT -DLONGFN \
  1997.     -DHDBUUCP -DDYNAMIC -DLOCK_DIR=\\\"/usr/spool/uucp\\\" -DNOSETBUF \
  1998.     +DA750 +DS750 +ESlit +ESsfc -J +O3 \
  1999.     -DTCPSOCKET  $(KFLAGS)   " "LNKFLAGS = -s" "LIBS = -lBSD -lcurses"
  2000.  
  2001. #Regulus on CIE Systems 680/20
  2002. cie:
  2003.     @echo 'Making C-Kermit $(CKVER) for CIE Systems 680/20 Regulus...'
  2004.     $(MAKE) wermit "CFLAGS = -DATTSV -DNOFILEH -DCIE $(KFLAGS) -O" \
  2005.     "LNKFLAGS ="
  2006.  
  2007. # Linux with the GCC 2.1 compiler.
  2008. linuxgcc2:
  2009.     @echo 'Making C-Kermit Linux with gcc2.1'
  2010.     $(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC  \
  2011.     -DUSLEEP $(KFLAGS)" "CC2 = gcc" "LDFLAGS = -ltermcap "
  2012.  
  2013. # Linux with the GCC 2.1 compiler with TCP/IP and fullscreen display
  2014. linuxgcc2net:
  2015.     @echo 'Making C-Kermit Linux with gcc2.1 and TCP/IP'
  2016.     $(MAKE) wermit "CC = gcc" "CFLAGS = -O -DPOSIX -DDIRENT -DDYNAMIC  \
  2017.     -DUSLEEP -DTCPSOCKET -DCK_CURSES $(KFLAGS)" "CC2 = gcc" \
  2018.     "LIBS = -ltermcap -lcurses"
  2019.  
  2020. #Microport SV/AT for IBM PC/AT 286 and clones, System V R2.
  2021. #The -O flag may fail on some modules (like ckuus2.c), in which case you
  2022. #should compile them by hand, omitting the -O.  If you get "hash table
  2023. #overflow", try adding -DNODEBUG.
  2024. #Also, reportedly this compiles better with gcc than with cc.
  2025. mpsysv:
  2026.     @echo 'Making C-Kermit $(CKVER) for Microport SV/AT 286...'
  2027.     $(MAKE) wermit "CFLAGS= -DATTSV $(KFLAGS) -O -Ml" "LNKFLAGS = -Ml"
  2028.  
  2029. #Microsoft "Xenix/286" e.g. for IBM PC/AT
  2030. xenix:
  2031.     @echo 'Making C-Kermit $(CKVER) for Xenix/286'
  2032.     $(MAKE) wermit \
  2033.     "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i" \
  2034.     "LNKFLAGS = -F 3000 -i"
  2035.  
  2036. #SCO Xenix 2.2.1 for IBM PC, XT, PS2/30, or other 8088 or 8086 machine
  2037. #Should this not work, try some of the tricks from sco286.
  2038. #NOTE: -DRENAME is omitted for early SCO Xenix releases because it didn't
  2039. #exist, or its semantics were different from the later POSIX-compliant
  2040. #version of rename().
  2041. sco86:
  2042.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/86...'
  2043.     $(MAKE) wermit \
  2044.     "CFLAGS= -DXENIX -DNOFILEH $(KFLAGS) -Dunix -F 3000 -i -M0me" \
  2045.     "LNKFLAGS = -F 3000 -i -s -M0me" "LIBS = -lx"
  2046.  
  2047. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  2048. #Reportedly, this "make" can fail simply because of the size of this
  2049. #makefile.  If that happens, use "makeL", or edit out some of the
  2050. #other entries.  No debugging or character-set translation.
  2051. sco286:
  2052.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286...'
  2053.     @echo 'If make fails, try using makeL.'
  2054.     $(MAKE) wermit \
  2055.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  2056.     -DNODEBUG -DNOTLOG -DNOCSETS \
  2057.     $(KFLAGS) -F 3000 -i -M2let32" \
  2058.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  2059.  
  2060. #SCO Xenix/286 2.2.1, e.g. for IBM PC/AT, PS/2 Model 50, etc.
  2061. #As above, but with HDBUUCP
  2062. sco286hdb:
  2063.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/286 with HDB UUCP...'
  2064.     @echo 'If make fails, try using makeL.'
  2065.     $(MAKE) wermit \
  2066.     "CFLAGS= -s -O -LARGE -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP \
  2067.     -DHDBUUCP $(KFLAGS) -F 3000 -i -M2let32" \
  2068.     "LIBS = -lx" "LNKFLAGS = -s -O -LARGE -F 3000 -i -M2let32"
  2069.  
  2070. #SCO Xenix/386 2.2.2
  2071. sco386:
  2072.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.2.2...'
  2073.     $(MAKE) wermit \
  2074.     "CFLAGS= -DXENIX -DNOFILEH -Dunix -DRDCHK -DNAP $(KFLAGS) -Otcl -M3e" \
  2075.     "LNKFLAGS = -s" "LIBS = -lx"
  2076.  
  2077. #SCO XENIX/386 2.3.3 with gcc 1.37 or later...
  2078. sco386gcc:
  2079.     @echo 'Making C-Kermit $(CKVER) for SCO Xenix/386 2.3.3, gcc...'
  2080.     $(MAKE) wermit "CC = gcc" "CC2 = gcc" \
  2081.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2082.     -DNOJC -DNODEBUG -DDYNAMIC $(KFLAGS) \
  2083.     -traditional -fpcc-struct-return -fstrength-reduce \
  2084.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2085.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2086.     -DM_SYSIII -DM_SYSV -DM_WORDSWAP -DM_XENIX \
  2087.     -DPWID_T=int " "LNKFLAGS = -s" "LIBS = -lx"
  2088.  
  2089. #SCO UNIX (and ODT) entries...
  2090. #
  2091. #NOTE: All SCO UNIX entry LIBS should have "-lc_s -lc -lx" IN THAT ORDER (if
  2092. #shared C library is desired), or else "-lc -lx" IN THAT ORDER.  Use shared C
  2093. #libraries to save memory, but then don't expect to run the resulting binary
  2094. #on a different machine.  When using -lc_s, you must also use -lc, because the
  2095. #shared C library does not contain all of libc.a.  And in all cases, -lc must
  2096. #ALWAYS precede -lx.
  2097. #
  2098. #ANOTHER NOTE: -DRENAME is included in all SCO UNIX entries.  Remove it if it
  2099. #causes trouble.
  2100. #
  2101. #AND ANOTHER: In theory, it should be possible to run SCO UNIX binaries on
  2102. #SCO Xenix 2.3 and later.  In practice, this might not work because of the
  2103. #libraries, etc.  Also, don't add the -link -z switch (which is supposed to
  2104. #root out references to null pointers) because it makes UNIX binaries core
  2105. #dump when they are run under Xenix.
  2106.  
  2107. #SCO UNIX/386 3.2.0, 3.2.1, and SCO Xenix 2.3.x
  2108. sco3r2:
  2109.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386...'
  2110.     @echo 'Warning: If make blows up, edit the makefile to join'
  2111.     @echo 'the following three continued lines into one line.'
  2112.     $(MAKE) wermit \
  2113.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2114.     -DRENAME -DNOJC $(KFLAGS) -Otcl" "LNKFLAGS = -s" "LIBS = -lc -lx"
  2115.  
  2116. # Exactly the same as above, but enables some special SCO-specific code
  2117. # that allegedly clears up some problems with HANGUP and with uugetty.
  2118. # For satisfactory operation on bidirectional lines that are handled by
  2119. # uugetty, you must install the kermit program with owner=group=uucp
  2120. # and permission 06755.
  2121. sco3r2x:
  2122.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386...'
  2123.     @echo 'Warning: If make blows up, edit the makefile to join'
  2124.     @echo 'the following four continued lines into one line.'
  2125.     $(MAKE) wermit \
  2126.     "CFLAGS= -DSCO32 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2127.     -DNOJC -DRENAME -DNOCOTFMC $(KFLAGS) -Otcl" \
  2128.     "LNKFLAGS = -s" "LIBS = -lc -lx"
  2129.  
  2130. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  2131. #In case of compilation or runtime problems, try adding
  2132. #"-DUID_T=int -DGID_T=int" to the CFLAGS.  If that doesn't work, try
  2133. #"-DUID_T=uid_t -DGID_T=gid_t".
  2134. sco3r2net:
  2135.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan...'
  2136.     @echo 'Warning: If make blows up, edit the makefile to join'
  2137.     @echo 'the following three continued lines into one line.'
  2138.     $(MAKE) wermit \
  2139.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DDYNAMIC -DNOFILEH \
  2140.     -DHDBUUCP -DRDCHK -DNAP -DRENAME -DTCPSOCKET -DEXCELAN -DNOJC \
  2141.     $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lc -lx -lsocket"
  2142.  
  2143. #SCO UNIX/386 3.2.0 and SCO Xenix 2.3.x with Excelan TCP/IP support.
  2144. #As above, with curses library added for FULLSCREEN file transfer display.
  2145. #See comments for sco3r2net.
  2146. sco3r2netc:
  2147.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Excelan / curses...'
  2148.     @echo 'Warning: If make blows up, edit the makefile to join'
  2149.     @echo 'the following three continued lines into one line.'
  2150.     $(MAKE) wermit \
  2151.     "CFLAGS= -I/usr/include/exos -DXENIX -DSVR3 -DDYNAMIC -DNOFILEH \
  2152.     -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DEXCELAN -DNOJC $(KFLAGS) \
  2153.     -DRENAME -DCK_CURSES -O" "LNKFLAGS = -s" \
  2154.     "LIBS = -lc -lx -lsocket -lcurses -ltermcap"
  2155.  
  2156. #SCO UNIX 3.2.x or SCO Xenix 2.3.x with Racal InterLan TCP/IP support
  2157. # Extra compile flags for other version of Racal InterLan TCP/IP:
  2158. # Xenix286/NP621-286, use -Ml -DPARAMH -DINTERLAN -Di286 -DSYSV
  2159. # Xenix386/NP621-386, use -DPARAMH -DINTERLAN -Di386 -DSYSV
  2160. # ISC386ix/NP622I, use -DSYSV -Di386
  2161. # SCO Unix3.2/NP622S, use -DSYSV -Di386 -DSCO_UNIX
  2162. # AT&T SVR3.2/NP622A, use -DSYSV -Di386 -DATT
  2163. sco3r2netri:
  2164.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 / Racal InterLan...'
  2165.     @echo 'Warning: If make blows up, edit the makefile to join'
  2166.     @echo 'the following five continued lines into one line.'
  2167.     $(MAKE) wermit \
  2168.     "CFLAGS= -I/usr/include/interlan -DXENIX -DNOFILEH -DHDBUUCP \
  2169.     -DSVR3 -DRDCHK -DNAP -DTCPSOCKET -DPARAMH -DINTERLAN -Di386 -DSYSV \
  2170.     -DRENAME -DNOJC $(KFLAGS) -Otcl -M3e" "LNKFLAGS = -s" \
  2171.     "LIBS = -lc -lx -ltcp"
  2172.  
  2173. # SCO XENIX/386 2.3.3 SysV with SCO TCP/IP
  2174. # System V STREAMS TCP developed by Lachman Associates Inc and
  2175. # Convergent Technologies.
  2176. # -DRENAME removed since some reports indicate it is not supported
  2177. # (whereas others say it is.)
  2178. sco3r2lai:
  2179.     @echo 'Making C-Kermit $(CKVER) for SCO XENIX/386 2.3.3 + TCP/IP...'
  2180.     @echo 'Warning: If make blows up, edit the makefile to join'
  2181.     @echo 'the following four continued lines into one line.'
  2182.     $(MAKE) wermit \
  2183.     "CFLAGS= -DLAI_TCP -Di386 -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK \
  2184.     -DNAP -DTCPSOCKET -DPWID_T=int $(KFLAGS) -Otcl -i -M3e" \
  2185.     "LNKFLAGS = -i -s" "LIBS = -lc -lx -lsocket"
  2186.  
  2187. #SCO UNIX/386 3.2v2 (POSIX job control), shared libraries.
  2188. sco3r22:
  2189.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  2190.     @echo 'Warning: If make blows up, edit the makefile to join'
  2191.     @echo 'the following three continued lines into one line.'
  2192.     make wermit \
  2193.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DRENAME \
  2194.     -DPID_T=pid_t -DPWID_T=int -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
  2195.     "LNKFLAGS = -s" "LIBS = -lc_s -lc -lx"
  2196.  
  2197. #SCO UNIX/386 3.2v2, POSIX job control, fullscreen file transfer display,
  2198. #dynamic memory allocation, shared C library
  2199. sco3r22c:
  2200.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 ...'
  2201.     @echo 'Warning: If make blows up, edit the makefile to join'
  2202.     @echo 'the following four continued lines into one line.'
  2203.     make wermit \
  2204.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2205.     -DCK_CURSES -DDYNAMIC -DDIRENT -DRENAME \
  2206.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) -O" \
  2207.     "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  2208.  
  2209. #SCO UNIX/386 3.2v2 with gcc 1.40 or later (POSIX job control)
  2210. sco3r22gcc:
  2211.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2, gcc'
  2212.     @echo 'Warning: If make blows up, edit the makefile to join'
  2213.     @echo 'the following seven continued lines into one line.'
  2214.     make wermit "CC = gcc" \
  2215.     "CFLAGS= -O -DPOSIX -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2216.     -DRENAME -traditional -fpcc-struct-return -fstrength-reduce \
  2217.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2218.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2219.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  2220.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) " "LNKFLAGS = -s" \
  2221.     "LIBS = -lc_s -lc -lx"
  2222.  
  2223. #SCO UNIX/386 3.2v2 (ODT 1.1) (POSIX job control) with SCO TCP/IP, shared libs
  2224. sco3r22net:
  2225.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2.2 + TCP/IP...'
  2226.     @echo 'Warning: If make blows up, edit the makefile to join'
  2227.     @echo 'the following three continued lines into one line.'
  2228.     make wermit \
  2229.     "CFLAGS= -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET \
  2230.     -DRENAME -DPID_T=pid_t -DPWID_T=int -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
  2231.     "LNKFLAGS = -s" "LIBS = -lsocket -lc_s -lc -lx"
  2232.  
  2233. #As above, but with curses for fullscreen file transfer display.
  2234. sco3r22netc:
  2235.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v2 + TCP/IP...'
  2236.     @echo 'Warning: If make blows up, edit the makefile to join'
  2237.     @echo 'the following three continued lines into one line.'
  2238.     make wermit "CFLAGS= \
  2239.     -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DTCPSOCKET -DRENAME \
  2240.     -DCK_CURSES -DDIRENT -DDYNAMIC -DPID_T=pid_t -DPWID_T=int -O" \
  2241.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  2242.  
  2243. #SCO UNIX/386 3.2v4 (POSIX job control), curses, ANSI C compilation,
  2244. #<dirent.h> (EAFS) file system.
  2245. sco32v4:
  2246.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  2247.     @echo 'Warning: If make blows up, edit the makefile to join'
  2248.     @echo 'the following three continued lines into one line.'
  2249.     make wermit \
  2250.     "CFLAGS= -DXENIX -DSVR3 -DDIRENT -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2251.     -DRENAME -DCK_CURSES -DM_TERMINFO -DNOANSI -DPID_T=pid_t -DPWID_T=int \
  2252.     -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -s" "LIBS = -lcurses -lc_s -lc -lx"
  2253.  
  2254. #SCO UNIX/386 3.2v4 with gcc 1.40 or later, POSIX job control
  2255. #gcc 1.40 or later
  2256. sco32v4gcc:
  2257.     make wermit "CC = gcc" \
  2258.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOANSI \
  2259.     -DRENAME -DDIRENT -DCK_CURSES -DM_TERMINFO \
  2260.     -traditional -fpcc-struct-return -fstrength-reduce \
  2261.     -D_KR -D_NO_PROTOTYPE -D_SVID \
  2262.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2263.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2264.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  2265.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) " "LNKFLAGS = -s" \
  2266.     "LIBS = -lcurses -lc_s -lc -lx"
  2267.  
  2268. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  2269. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  2270. #gcc 1.40 or later
  2271. sco32v4netgcc:
  2272.     make wermit "CC = gcc" \
  2273.     "CFLAGS= -O -DXENIX -DSVR3 -DNOFILEH -DHDBUUCP -DRDCHK -DNAP -DNOANSI \
  2274.     -DRENAME -DTCPSOCKET -DDIRENT -DCK_CURSES -DM_TERMINFO \
  2275.     -traditional -fpcc-struct-return -fstrength-reduce \
  2276.     -D_KR -D_NO_PROTOTYPE -D_SVID \
  2277.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  2278.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  2279.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix \
  2280.     -DPID_T=pid_t -DPWID_T=int $(KFLAGS) " "LNKFLAGS = -s" \
  2281.     "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  2282.  
  2283. #SCO UNIX/386 3.2v4 (POSIX job control), TCP/IP, curses, ANSI C compilation,
  2284. #<dirent.h> (EAFS) file system.  With DIRENT, -lc must come before -lx.
  2285. sco32v4net:
  2286.     @echo 'Making C-Kermit $(CKVER) for SCO UNIX/386 3.2v4...'
  2287.     $(MAKE) wermit \
  2288.     "CFLAGS= -DXENIX -DSVR3 -DDIRENT -DNOFILEH -DHDBUUCP -DRDCHK -DNAP \
  2289.     -DRENAME -DTCPSOCKET -DCK_ANSIC -DCK_CURSES -DDYNAMIC $(KFLAGS) \
  2290.     -DPID_T=pid_t -DPWID_T=int -O" \
  2291.     "LNKFLAGS = -s" "LIBS = -lcurses -lsocket -lc_s -lc -lx"
  2292.  
  2293. sco_odt30:
  2294.     @echo SCO ODT 3.0
  2295.     $(MAKE) "MAKE=$(MAKE)" sco32v4net "KFLAGS=$(KFLAGS) -DODT30"
  2296.  
  2297. #PC/IX, Interactive Corp System III for IBM PC/XT
  2298. pcix:
  2299.     @echo 'Making C-Kermit $(CKVER) for PC/IX...'
  2300.     $(MAKE) wermit \
  2301.     "CFLAGS= -DPCIX -DISIII $(KFLAGS) -Dsdata=sdatax -O -i" "LNKFLAGS = -i"
  2302.  
  2303. #Integrated Solutions Inc V8S VME 68020
  2304. isi:
  2305.     @echo Making C-Kermit $(CKVER) for 4.2BSD on ISI...
  2306.     $(MAKE) wermit "CC = cc" \
  2307.     "CFLAGS= -DBSD4 -DTCPSOCKET -DINADDRX -DDCLPOPEN -DDEBUG -DNOSETREU \
  2308.     -DCK_CURSES $(KFLAGS)" "LIBS = -lcurses -ltermcap"
  2309.  
  2310. #Interactive Corp System III port in general --
  2311. #is3: (very old, probably not sufficient for 5A)
  2312. #    @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  2313. #    make wermit "CFLAGS = -DISIII -Ddata=datax -O -i" "LNKFLAGS = -i"
  2314. #The following should work, use it if you don't have gcc.
  2315. #Use is3gcc if you have gcc.
  2316. is3:
  2317.     @echo 'Making C-Kermit $(CKVER) for Interactive System III...'
  2318.     $(MAKE) wermit \
  2319.     "CFLAGS= -DISIII $(KFLAGS) -Ddata=datax -DNAP -DHDBUUCP
  2320.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O -i' "LNKFLAGS = -i"
  2321.  
  2322. #Interactive UNIX System V R3, no network support.  Uses <dirent.h> and Honey
  2323. #DanBer UUCP.  If this entry does not compile correctly, try any or all of the
  2324. #following.  These suggestions also apply more or less to the other is5r3xxx
  2325. #entries that follow this one.
  2326. # . Remove the UID_T and GID_T definitions, or change them as required.
  2327. # . Change -DDIRENT to -DSDIRENT.
  2328. # . Add -DSIGTYP=void.
  2329. # . Remove -g from LNKFLAGS.
  2330. # . Add -DNOANSI to remove compiler complaints about ANSI C constructions
  2331. # . Add other -DNOxxx's to save space (e.g. -DNOCSETS)
  2332. # See the next few makefile entries for related examples.
  2333. is5r3:
  2334.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  2335.     @echo 'If this does not work please read the makefile entry.'
  2336.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS \
  2337.     -DUID_T=ushort -DGID_T=ushort -DDYNAMIC -DI386IX $(KFLAGS)" \
  2338.     "LNKFLAGS = -g"
  2339.  
  2340. #Interactive Corp System System V R3 with gcc
  2341. is3gcc:
  2342.     @echo 'Making C-Kermit $(CKVER) for Interactive System V R3 / gcc...'
  2343.     $(MAKE) wermit CC=gcc CC2=gcc \
  2344.     'CFLAGS = -D_SYSV3 -DISIII -Ddata=datax -DNAP -DHDBUUCP \
  2345.     -DLOCK_DIR=\"/usr/spool/uucp\" -DSIGTYP=void -O' "LNKFLAGS ="
  2346.  
  2347. #Interactive UNIX System V R3, POSIX variant.  Untested.
  2348. #Uses dirent.h and Honey DanBer uucp.  Read comments in is5r3 entry.
  2349. is5r3p:
  2350.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix or later...'
  2351.     $(MAKE) wermit "CFLAGS= -DSVR3 -DDIRENT -DHDBUUCP -g -DNOCSETS \
  2352.     -DDYNAMIC -DI386IX -DPOSIX $(KFLAGS)" "LNKFLAGS=" "LIBS=-lcposix"
  2353.  
  2354. #Interactive UNIX SVR3 2.2.1, job control, curses, no net, gcc.
  2355. is5r3gcc:
  2356.     $(MAKE) wermit CC=gcc CC2=gcc CFLAGS="-g -posix -DSVR3 -DDIRENT \
  2357.     -DHDBUUCP -O -DNOCSETS -DDYNAMIC -DI386IX -DSVR3JC -DCK_CURSES \
  2358.     $(KFLAGS)" LNKFLAGS="-posix" LIBS="-lcurses -lc_s"
  2359.  
  2360. #Interactive UNIX System V R3 with TCP/IP network support.
  2361. #Needs -linet for net functions.  signal() is void rather than int.
  2362. #Uses dirent.h and Honey DanBer uucp. Read comments in is5r3 entry.
  2363. #Also see is5r3net2 if you have trouble with this entry.
  2364. is5r3net:
  2365.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  2366.     @echo 'If this does not work please read the makefile entry.'
  2367.     $(MAKE) wermit \
  2368.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DTCPSOCKET \
  2369.     -DI386IX $(KFLAGS) -O" "LIBS = -linet"
  2370.  
  2371. #Interactive UNIX System V R3, no job control, signal() void rather than int.
  2372. #Uses dirent.h and Honey DanBer uucp.  Needs -linet for net functions.
  2373. #Read comments in is5r3 entry.  Use this entry if is5r3net fails.
  2374. #Saves some space by stripping (-s) and using shared library (-lc_s).
  2375. is5r3net2:
  2376.     @echo 'Making C-Kermit $(CKVER) for Interactive 386/ix...'
  2377.     $(MAKE) wermit \
  2378.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DTCPSOCKET -DNOJC \
  2379.     -DSIGTYP=void -DNOANSI -DI386IX $(KFLAGS) -O" \
  2380.     "LNKFLAGS= -s" "LIBS = -linet -lc_s"
  2381.  
  2382. #Interactive UNIX System V R3 (version 2.2 or later) with job control & curses.
  2383. #Uses dirent.h and Honey DanBer UUCP.
  2384. is5r3jc:
  2385.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  2386.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS \
  2387.     -DUID_T=ushort -DGID_T=ushort -DDYNAMIC -DI386IX -DSVR3JC -DCK_CURSES \
  2388.     $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-lcurses -lc_s"
  2389.  
  2390. #Sunsoft/Interactive UNIX System V R3 (version 2.2 or later)
  2391. #with job control, curses, and TCP/IP networking.
  2392. #Uses dirent.h and Honey DanBer UUCP.
  2393. is5r3netjc:
  2394.     @echo 'Making C-Kermit $(CKVER) for Interactive Unix 2.2 or later...'
  2395.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -O -DNOCSETS \
  2396.     -DUID_T=ushort -DGID_T=ushort -DDYNAMIC -DI386IX -DSVR3JC -DCK_CURSES \
  2397.     -DTCPSOCKET $(KFLAGS)" "LNKFLAGS = -s" "LIBS=-linet -lcurses -lc_s"
  2398.  
  2399. #Masscomp System III
  2400. rtu:
  2401.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU System III...'
  2402.     $(MAKE) wermit \
  2403.     "CFLAGS= -UFIONREAD -DATTSV $(KFLAGS) -O" "LNKFLAGS =" "LIBS= -ljobs"
  2404.  
  2405. #Masscomp/Concurrent RTU 4.0 or later, Berkeley environment.
  2406. #Includes <ndir.h> = /usr/include/ndir.h
  2407. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  2408. rtubsd:
  2409.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  2410.     ucb make wermit \
  2411.     "CFLAGS= -DBSD4 -DRTU -DNDIR -DHDBUUCP -DTCPSOCKET $(KFLAGS)" \
  2412.     "LIBS = -lndir"
  2413.  
  2414. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  2415. #Includes "usr/lib/ndir.h"
  2416. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  2417. rtubsd2:
  2418.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.1A...'
  2419.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DXNDIR -DHDBUUCP $(KFLAGS)" \
  2420.     "LIBS = -lndir"
  2421.  
  2422. #Masscomp/Concurrent RTU 4.0 or later, same as above,
  2423. #Includes <sys/ndir.h>
  2424. #Note "LIBS = -lndir" might not be necessary because of "ucb make".
  2425. rtubsd3:
  2426.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x BSD...'
  2427.     ucb make wermit "CFLAGS= -DBSD4 -DRTU -DHDBUUCP $(KFLAGS)" \
  2428.     "LIBS = -lndir"
  2429.  
  2430. #Masscomp/Concurrent RTU 4.0 or later, System V R2, using <dirent.h>.
  2431. #In case of problems, add back the -DRTU switch.
  2432. #In case -DTCPSOCKET gives trouble, remove it.
  2433. rtus5:
  2434.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU 4.x...'
  2435.     $(MAKE) wermit \
  2436.     "CFLAGS= -DATTSV -DHDBUUCP -DDIRENT -DTCPSOCKET -DDYNAMIC \
  2437.     -DNOSETBUF $(KFLAGS)"
  2438.  
  2439. #Masscomp/Concurrent RTU 4.x, System V R3, using <dirent.h>.
  2440. #Use this one if rtus5 gives warnings about pointer type mismatches.
  2441. #In case of problems, add back the -DRTU switch.
  2442. rtus5r3:
  2443.     @echo 'Making C-Kermit $(CKVER) for Masscomp RTU Sys V R3...'
  2444.     $(MAKE) wermit "CFLAGS= -DSVR3 -DHDBUUCP -DDIRENT $(KFLAGS)"
  2445.  
  2446. #DEC Pro-3xx with Pro/Venix V1.0 or V1.1
  2447. # Requires code-mapping on non-I&D-space 11/23 processor, plus some
  2448. # fiddling to get interrupt targets into resident code section.
  2449. # This almost certainly doesn't work any more.
  2450. provx1:
  2451.     @echo 'Making C-Kermit $(CKVER) for DEC Pro-3xx, Pro/Venix 1.x...'
  2452.     $(MAKE) wart "CFLAGS= -DPROVX1 $(KFLAGS)" "LNKFLAGS= "
  2453.     $(MAKE) wermit "CFLAGS = -DPROVX1 -DNOFILEH -md780" \
  2454.         "LNKFLAGS= -u _sleep -lc -md780"
  2455.  
  2456. #Nixdorf Targon/31.
  2457. #AT&T UNIX System V R3, signal() is void rather than int.
  2458. #Uses dirent.h without Honey DanBer uucp.
  2459. t31tos40x:
  2460.     @echo 'Making C-Kermit $(CKVER) for Targon/31 with TOS 4.0.xx...'
  2461.         $(MAKE) wermit \
  2462.         "CFLAGS= -DSVR3 -DDIRENT -DDYNAMIC $(KFLAGS) -O" \
  2463.         "LNKFLAGS="
  2464.  
  2465. #NCR Tower 1632, OS 1.02
  2466. tower1:
  2467.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 1632, OS 1.02...'
  2468.     $(MAKE) wermit "CFLAGS= -DTOWER1 $(KFLAGS)"
  2469.  
  2470. #NCR Tower 32, OS Release 1.xx.xx
  2471. tower32-1:
  2472.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 1 System V R2...'
  2473.     $(MAKE) wermit \
  2474.     "CFLAGS = -DATTSV -DDYNAMIC $(KFLAGS) -O" "LNKFLAGS = -n"
  2475.  
  2476. #NCR Tower 32, OS Release 2.xx.xx
  2477. tower32-2:
  2478.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 Rel 2 System V R2...'
  2479.     $(MAKE) wermit "CFLAGS = -DATTSV -DHDBUUCP -DDYNAMIC $(KFLAGS) -O2" \
  2480.     "LNKFLAGS = -n"
  2481.  
  2482. #NCR Tower 32, OS Releases based on System V R3
  2483. #Don't add -DNAP (doesn't work right) or -DRDCHK (not available in libc).
  2484. tower32:
  2485.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3...'
  2486.     $(MAKE) wermit \
  2487.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSYSIOCTLH $(KFLAGS) \
  2488.     -DUID_T=ushort -DGID_T=ushort -O1"
  2489.  
  2490. #NCR Tower 32, OS Releases based on System V R3
  2491. tower32g:
  2492.     @echo 'Making C-Kermit $(CKVER) for NCR Tower 32 System V R3, gcc...'
  2493.     $(MAKE) wermit "CC = gcc" \
  2494.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNOSYSIOCTLH $(KFLAGS) \
  2495.     DUID_T=ushort -DGID_T=ushort -O -fstrength-reduce -fomit-frame-pointer"
  2496.  
  2497. #Fortune 32:16, For:Pro 1.8 (mostly like 4.1bsd)
  2498. ft18:
  2499.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 1.8...'
  2500.     $(MAKE) wermit "CFLAGS= -DNODEBUG -DBSD4 -DFT18 -DNOFILEH $(KFLAGS) \
  2501.     -DPID_T=short"
  2502.  
  2503. #Fortune 32:16, For:Pro 2.1 (mostly like 4.1bsd).
  2504. #The modules that break the optimizer are compiled separately.
  2505. ft21:
  2506.     @echo 'Making C-Kermit $(CKVER) for Fortune 32:16 For:Pro 2.1...'
  2507.     $(MAKE) ckuusx.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  2508.     -SYM 800  -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2509.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2510.     $(MAKE) ckuxla.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  2511.     -SYM 800  -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2512.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2513.     $(MAKE) ckudia.$(EXT) "CFLAGS= -DNODEBUG -DBSD4 -DFT21 -DNOFILEH \
  2514.     -SYM 800  -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2515.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2516.     $(MAKE) wermit "CFLAGS= -O -DNODEBUG -DBSD4 -DFT21 -DNOFILEH -SYM 800 \
  2517.     -DDYNAMIC -DNOSETBUF -DCK_CURSES $(KFLAGS) -DPID_T=short" \
  2518.     "LNKFLAGS= -n -s" "LIBS= -lcurses -ltermcap -lv -lnet"
  2519.  
  2520. #Valid Scaldstar
  2521. #Berkeleyish, but need to change some variable names.
  2522. valid:
  2523.     @echo 'Making C-Kermit $(CKVER) for Valid Scaldstar...'
  2524.     $(MAKE) wermit \
  2525.     "CFLAGS= -DBSD4 -DNODEBUG -DNOTLOG -Dcc=ccx -DFREAD=1 $(KFLAGS)"
  2526.  
  2527. #IBM IX/370 on IBM 370 Series mainframes
  2528. #Mostly like sys3, but should buffer packets.
  2529. ix370:
  2530.     @echo 'Making C-Kermit $(CKVER) for IBM IX/370...'
  2531.     $(MAKE) wermit "CFLAGS = -DIX370 -DATTSV $(KFLAGS) -i -O" \
  2532.     "LNKFLAGS = -i"
  2533.  
  2534. #Amdahl UTS 2.4 on IBM 370 series compatible mainframes.
  2535. #Mostly like V7, but can't do initrawq() buffer peeking.
  2536. uts24:
  2537.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTS 2.4...'
  2538.     $(MAKE) wermit "CFLAGS=-DV7 -DPROCNAME=\\\"$(PROC)\\\" \
  2539.     -DUTS24 -DBOOTNAME=\\\"$(BOOTFILE)\\\" -DNPROCNAME=\\\"$(NPROC)\\\" \
  2540.     -DNPTYPE=$(NPTYPE) $(DIRECT) $(KFLAGS)"
  2541.  
  2542. #Amdahl UTSV UNIX System V = System V R2 or earlier.
  2543. utsv:
  2544.     @echo 'Making C-Kermit $(CKVER) for Amdahl UTSV...'
  2545.     $(MAKE) wermit "CFLAGS = -DUTSV $(KFLAGS) -i -O" "LNKFLAGS = -i"
  2546.  
  2547. #BBN C/70 with IOS 2.0
  2548. #Mostly Berkeley-like, but with some ATTisms
  2549. c70:
  2550.     @echo 'Making C-Kermit $(CKVER) for BBN C/70 IOS 2.0...'
  2551.     $(MAKE) wermit "CFLAGS= -DBSD4 -DC70 $(KFLAGS)"
  2552.  
  2553. #Zilog ZEUS 3.21
  2554. zilog:
  2555.     @echo 'Making C-Kermit $(CKVER) for Zilog Zeus 3.21...'
  2556.     $(MAKE) wermit "CFLAGS = -DATTSV -DZILOG -DNODEBUG $(KFLAGS) -i -O" \
  2557.     "LNKFLAGS = -i -lpw"
  2558.  
  2559. #Whitechapel MG-1 Genix 1.3
  2560. white:
  2561.     @echo 'Making C-Kermit $(CKVER) for Whitechapel MG-1 Genix 1.3...'
  2562.     @touch ckcpro.c
  2563.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0  $(KFLAGS)"
  2564.  
  2565. #Pixel 1000
  2566. pixel:
  2567.     @echo 'Making C-Kermit $(CKVER) for Pixel 1000...'
  2568.     $(MAKE) wermit "CFLAGS= -DBSD4 -Dzkself()=0 $(KFLAGS)"
  2569.  
  2570. ptx:
  2571.     $(MAKE) "MAKE=$(MAKE)" dynixptx12
  2572.  
  2573. #CDC VX/VE 5.2.1
  2574. vxve:
  2575.     @echo 'Making C-Kermit $(CKVER) for CDC VX/VE 5.2.1...'
  2576.     $(MAKE) wermit \
  2577.     "CFLAGS = -DATTSV -DVXVE -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  2578.     "LNKFLAGS = -i"
  2579.  
  2580. #Tandy 16/6000 with Xenix 3.0
  2581. #Add -DNOxxx options to remove features if program won't load.
  2582. trs16:
  2583.     @echo 'Making C-Kermit $(CKVER) for Tandy 16/16000, Xenix 3.0...'
  2584.     $(MAKE) wermit "CFLAGS = -DATTSV -DTRS16 -DDCLPOPEN $(KFLAGS) -O" \
  2585.     "LNKFLAGS = -n -s"
  2586.  
  2587. #DIAB DS90 or LUXOR ABC-9000 with pre-5.2 DNIX.  Sys V with nap() and rdchk().
  2588. # nd = no opendir(), readdir(), closedir(), etc.
  2589. # Some of the modules fail to compile with -O.
  2590. dnixnd:
  2591.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with very old DNIX 5.2.'
  2592.     $(MAKE) wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDYNAMIC -DDCLPOPEN \
  2593.     -U__STDC__ $(KFLAGS)"
  2594.  
  2595. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  2596. # This one has opendir(), readdir(), closedir(), etc.
  2597. # Some of the modules fail to compile with -O.
  2598. dnix:
  2599.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  2600.     $(MAKE) wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT -DDYNAMIC  \
  2601.     -U__STDC__ $(KFLAGS)"
  2602.  
  2603. #DIAB DS90 with DNIX 5.2.  Sys V with nap() and rdchk().
  2604. # As above, but with curses and TCP/IP.
  2605. # You might get complaints about redefinition of O_RDONLY, etc, because
  2606. # of bugs in the DNIX header files, which can be fixed by adding #ifndef...
  2607. # around the offending definitions in the header files.
  2608. dnixnetc:
  2609.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with old DNIX 5.2...'
  2610.     $(MAKE) wermit "CFLAGS = -DATTSV -DNAP -DRDCHK -DDIRENT -DDYNAMIC  \
  2611.     -DTCPSOCKET -DCK_CURSES -I/usr/include/bsd -U__STDC__ $(KFLAGS)" \
  2612.     "LIBS = -ln -lcurses"
  2613.  
  2614. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk().
  2615. dnix5r3:
  2616.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2617.     @echo 'with Honey DanBer UUCP'
  2618.     $(MAKE) wermit "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  2619.     -DDYNAMIC -DCK_CURSES -DRENAME $(KFLAGS) -O" "LIBS= -lcurses"
  2620.  
  2621. #DIAB DS90 with DNIX 5.3 or later, with HDB UUCP, nap() and rdchk() + TCP/IP
  2622. dnix5r3net:
  2623.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2624.     @echo 'with Honey DanBer UUCP and TCP/IP'
  2625.     $(MAKE) wermit "CFLAGS = -DSVR3 -DHDBUUCP -DNAP -DRDCHK -DDIRENT \
  2626.     -DTCPSOCKET -DDYNAMIC -DCK_CURSES -DRENAME $(KFLAGS) -O \
  2627.     -I/usr/include/bsd" "LIBS = -ln -lcurses"
  2628.  
  2629. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  2630. #ANSI C compilation and libraries.
  2631. #Note that for DNIX 5.3 2.2 you have to correct a bug in /usr/include/stdlib.h:
  2632. #change "extern    void free(char *str);"
  2633. #to     "extern void free(void *str);"
  2634. #NOTE: This bug is reportedly fixed in DNIX 5.3 2.2.1.
  2635. dnix5r3ansi:
  2636.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2637.     @echo 'with ANSI C Honey DanBer UUCP'
  2638.     $(MAKE) wermit \
  2639.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT -DDYNAMIC \
  2640.     -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS)" \
  2641.     "LIBS= -lcurses"
  2642.  
  2643. #DIAB DS90 with DNIX 5.3 2.2 or later, with HDB UUCP, nap() and rdchk(),
  2644. # + TCP/IP, ANSI C compilation and libraries.
  2645. dnix5r3ansinet:
  2646.     @echo 'Making C-Kermit $(CKVER) for DIAB DS90 with DNIX 5.3...'
  2647.     @echo 'with ANSI C Honey DanBer UUCP'
  2648.     $(MAKE) wermit \
  2649.     "CFLAGS = -DSVR3 -DDIAB -DHDBUUCP -DNAP -DRDCHK -DDIRENT -DDYNAMIC \
  2650.     -DTCPSOCKET -DCK_ANSILIBS -DCK_CURSES -DRENAME -O -X7 -X9 $(KFLAGS) \
  2651.     -I/usr/include/bsd" "LIBS= -ln -lcurses"
  2652.  
  2653. #QNX 4.1 with Watcom C 8.5 on i286 PCs and above.
  2654. #A 16-bit OS, fully configured C-Kermit is too big.
  2655. #stacksize 26000, objects larger than 100 bytes in their own segments,
  2656. #string constants to the codesegment, etc.
  2657. qnx:
  2658.     @echo 'Making C-Kermit $(CKVER) for QNX 4.1...'
  2659.     $(MAKE) wermit "LNKFLAGS = -mh -N 26000" "CFLAGS = -Wc,-fpc -Wc,-j \
  2660.     -Wc,-Ols -Wc,-zdf -Wc,-zc -Wc,-zt100 -mh -DPOSIX -DQNX -DDIRENT \
  2661.     -DNOCYRIL -DNODEBUG -DNOMSEND -DMINIDIAL -DNOXMIT -DNOSCRIPT -DNOSPL \
  2662.     -DNOSETKEY -DDYNAMIC -DPID_T=pid_t $(KFLAGS)"
  2663.  
  2664. #Ridge 32 with ROS 3.2
  2665. ridge32:
  2666.     @echo 'Making C-Kermit $(CKVER) Ridge 32 ROS 3.2'
  2667.     $(MAKE) wermit \
  2668.     "CFLAGS = -DATTSV -DNOFILEH -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  2669.     "LNKFLAGS = -i"
  2670.  
  2671. #Altos 486, 586, or 986 with Xenix 3.0
  2672. altos:
  2673.     @echo 'Making C-Kermit $(CKVER) for Altos x86 with Xenix 3.0...'
  2674.     $(MAKE) wermit \
  2675.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG $(KFLAGS) -i -O" \
  2676.     "LNKFLAGS= -i"
  2677.  
  2678. #Altos 986 with Xenix 3.0, as above, but command-line only, minimal size.
  2679. #For systems with small memories.  It might also be necessary to chop certain
  2680. #modules up into smaller pieces, e.g. ckuus3-6, because of symbol table
  2681. #overflow.   If this makefile is too big or complex for the Altos, compile
  2682. #and link by hand or write shell scripts.
  2683. altosc:
  2684.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, remote...'
  2685.     $(MAKE) wermit \
  2686.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  2687.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOICP $(KFLAGS) -Mm -O" \
  2688.     "LNKFLAGS= -Mm -s"
  2689.  
  2690. #Altos 986 with Xenix 3.0, as above, but interactive only, minimal size.
  2691. altosi:
  2692.     @echo 'Making C-Kermit $(CKVER) for Altos x86 Xenix 3.0, local...'
  2693.     $(MAKE) wermit \
  2694.     "CFLAGS= -DATTSV -DA986 -DNODEBUG -DNOTLOG -DNOSCRIPT -DNODIAL \
  2695.     -DNOCSETS -DNOANSI -DNOMSEND -DNOSPL -DNOCMDL -DNOFRILLS -DNOHELP \
  2696.     -DNOSETKEY $(KFLAGS) -Mm -O" "LNKFLAGS= -Mm -s"
  2697.  
  2698. # Altos ACS68000 68000 System, UNIX System 3 Release 2, 512k memory.
  2699. # also needs getcwd() external function; see ckuins.doc file.
  2700. # also, sys/types.h needed modifying:
  2701. #   #ifdef __SYS_TYPES_H__, #define ..., #endif
  2702. # also, ckuus2.c MUST be compiled NOOPT else symbol table is destroyed!
  2703. # Submission by Robert Weiner/Programming Plus, rweiner@watsun.cc.columbia.edu
  2704. #
  2705. altos3:
  2706.     @echo 'Making C-Kermit $(CKVER) for Altos ACS68k UNIX System III'
  2707.     $(MAKE) ckuus2.$(EXT) "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  2708.       -DNODIAL -DDCLPOPEN -DNOSETBUF -DNOSCRIPT -DNOHELP $(KFLAGS) -i"
  2709.     $(MAKE) wermit        "CFLAGS = -DATTSV -DNOCSETS -DNOSETKEY -DNOJC \
  2710.       -DNODIAL -DDCLPOPEN -DNOSETBUF -DNOSCRIPT -DNOHELP $(KFLAGS) -i -O" \
  2711.         "LNKFLAGS = -i" "LIBS = getcwd.$(EXT)"
  2712.  
  2713. #MINIX - Original PC version with 64K+64K limit.
  2714. # Reportedly, the linker (asld) can run out of space while linking.  The only
  2715. # way around this is to make a copy of libc.a from which all modules that are
  2716. # not used by Kermit are removed.  If you have trouble compiling or running
  2717. # wart, "touch wart".  If that doesn't help, "touch ckcpro.c".
  2718. # The version configured below has no interactive command parser.
  2719. # If you can build this version successfully, maybe there will be room for
  2720. # a minimal interactive command parser too; try replacing -DNOICP with
  2721. # -DNOSPL, plus every other -DNOxxx flag there is, except for -DNOICP
  2722. # (see ckccfg.doc).
  2723. minix:
  2724.     @echo 'Making C-Kermit $(CKVER) for MINIX, no command parser...
  2725.     @echo 'TOTALLY UNTESTED!'
  2726.     $(MAKE) wermit EXT=s \
  2727.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2728.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V \
  2729.     -DNOXMIT -DNOMSEND -DNOFRILLS -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2730.     -DNOSCRIPT -DNOCSETS -DNOICP -DNOSETKEY $(KFLAGS)" \
  2731.     "LNKFLAGS= -i -T"
  2732.  
  2733. #MINIX - PC version with 64K+64K limit, new (as yet unreleased) ACK 2.0 beta C
  2734. #compiler, which outputs .o object files, rather than .s.  But 'make' still
  2735. #expects .s files, so must be patched to use .o.  Tested on Minix 1.5.10.
  2736. minixnew:
  2737.     @echo 'Making C-Kermit $(CKVER) for MINIX (new ACK 2.0 compiler),'
  2738.     @echo 'no command parser...  TOTALLY UNTESTED!'
  2739.     $(MAKE) wermit \
  2740.     "CFLAGS= -DV7 -DMINIX -i -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2741.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V -DNODIAL \
  2742.     -DNOHELP -DNODEBUG -DNOTLOG -DNOSCRIPT -DNOCSETS -DNOICP $(KFLAGS)" \
  2743.     "LNKFLAGS= -i -T"
  2744.  
  2745. #MINIX/386 (PC Minix modified by Bruce Evans in Australia for 386 addressing)
  2746. minix386:
  2747.     @echo 'Making C-Kermit $(CKVER) for MINIX/386...'
  2748.     @echo 'TOTALLY UNTESTED!'
  2749.     $(MAKE) wermit EXT=s \
  2750.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DDYNAMIC $(KFLAGS)"
  2751.  
  2752. #MINIX/386 (PC Minix modifed by Bruce Evans in Australia to use 386 addressing)
  2753. minix386gcc:
  2754.     @echo 'Making C-Kermit $(CKVER) for MINIX/386 with gcc...'
  2755.     @echo 'TOTALLY UNTESTED!'
  2756.     $(MAKE) wermit "CC=gcc -g -O" "CC2=gcc -g" \
  2757.     "CFLAGS= -DV7 -DMINIX -D_POSIX_SOURCE -DDYNAMIC $(KFLAGS)"
  2758.  
  2759. #MINIX - 68k version with ACK compiler.
  2760. # If you have trouble compiling or running wart, "touch wart".
  2761. # If it still doesn't work, "touch ckcpro.c".
  2762. # The version configured below has many features removed, including
  2763. # the TRANSMIT, MSEND, HELP, and SCRIPT commands, international
  2764. # character set support, and the entire script programming language.
  2765. # But it does have an interactive command parser.
  2766. # Make sure make(1) has (at least) 100000 chmemory!
  2767. # If you are using the Amsterdam C compiler, you might have to add "-D__ACK__".
  2768. minix68k:
  2769.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with ACK...
  2770.     $(MAKE) wermit \
  2771.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2772.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2773.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  2774.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  2775.  
  2776. #MINIX - 68k version with c68 compiler.
  2777. # If you have trouble compiling or running wart, "touch wart" or
  2778. # "touch ckcpro.c". Compiling ckudia.c (no -DNODIAL!) might fail. :-(
  2779. # Give c68 250000 bytes of stack+heap; make sure make(1) has at least
  2780. # 100000 chmemory.  On a 1Mb Atari ST this means that the recursive
  2781. # call of make fails due to memory shortage.  Try "make -n minixc68 >makeit",
  2782. # followed by ". makeit".  Otherwise, as above.
  2783. minixc68:
  2784.     @echo 'Making C-Kermit $(CKVER) for MINIX 68k with c68...
  2785.     $(MAKE) wermit "CC= cc -c68" \
  2786.     "CFLAGS= -DV7 -DMINIX -D_MINIX -D_POSIX_SOURCE -DDYNAMIC \
  2787.     -DNODIAL -DNOHELP -DNODEBUG -DNOTLOG \
  2788.     -DNOSCRIPT -DNOCSETS -DNOSPL $(KFLAGS) \
  2789.     -DPID_T=pid_t -DUID_T=uid_t -DGID_T=gid_t -DSIG_V"
  2790.  
  2791. #MIPS Computer Systems with UMIPS RISC/OS AT&T UNIX System V R3.0.
  2792. #Add -DNOJC if UNIX job control causes trouble.
  2793. mips:
  2794.     @echo 'Making C-Kermit $(CKVER) for MIPS AT&T System V R3.0...'
  2795.     $(MAKE) wermit "CFLAGS = -DMIPS -DDIRENT -DDYNAMIC -DPID_T=int \
  2796.     $(KFLAGS) -DGID_T=gid_t -DUID_T=uid_t -i -O1500"
  2797.  
  2798. #As above, but with TCP/IP and fullscreen support.
  2799. mipstcpc:
  2800.     @echo 'Making C-Kermit $(CKVER) for MIPS AT&T System V R3.0...'
  2801.     $(MAKE) wermit "CFLAGS = -DMIPS -DDIRENT -DDYNAMIC -DPID_T=int \
  2802.     -DTCPSOCKET -I/usr/include/bsd -DCK_CURSES \
  2803.     $(KFLAGS) -DGID_T=gid_t -DUID_T=uid_t -i -O1500" \
  2804.     "LIBS = -lcurses -lbsd"
  2805.  
  2806. #Motorola Delta System V/68 R3, signal() is void rather than int.
  2807. #Uses dirent.h and Honey DanBer uucp.  Supports TCP/IP.
  2808. #After building, use "mcs -d" to reduce size of the executable program.
  2809. sv68r3:
  2810.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3...'
  2811.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  2812.     -DTCPSOCKET $(KFLAGS) \
  2813.     -O" "LNKFLAGS ="
  2814.  
  2815. #Motorola Delta System V/68 R3V5, signal() is void rather than int.
  2816. #Uses dirent.h and Honey DanBer UUCP.  Supports TCP/IP.
  2817. #After building, use "mcs -d" to reduce size of the executable program.
  2818. sv68r3v5:
  2819.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5'
  2820.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  2821.     -DTCPSOCKET -DINADDRX $(KFLAGS) -O" "LNKFLAGS =" "LIBS = -linet"
  2822.  
  2823. #Motorola MVME147 System V/68 R3 V5.1. Requires gcc 2.1 to compile.
  2824. #After building, use "mcs -d" to reduce size of the executable program.
  2825. sv68r3v51:
  2826.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/68 R3V5.1'
  2827.     $(MAKE) wermit "CC=gcc-delta" "CC2=gcc-delta" \
  2828.     "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC -DNODEBUG -DNOSETBUF \
  2829.     $(KFLAGS) -O2 -v -ftraditional" "LNKFLAGS = -s -v" "LIBS = -lm881"
  2830.  
  2831. #Motorola Delta System V/88 R32, signal() is void rather than int.
  2832. #Uses dirent.h and Honey DanBer uucp.  Needs <sys/utime.h> for setting
  2833. #file dates.  Supports TCP/IP.
  2834. #After building, use "mcs -d" to reduce size of the executable program.
  2835. sv88r32:
  2836.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R32...'
  2837.     $(MAKE) wermit "CFLAGS = -DSVR3 -DDIRENT -DHDBUUCP -DDYNAMIC \
  2838.     -DTCPSOCKET -DSYSUTIMEH -DCK_CURSES $(KFLAGS) \
  2839.     -O" "LIBS= -lcurses" "LNKFLAGS = -s"
  2840.  
  2841. #Motorola Delta System V/88 R40.  Has <sys/termiox.h>, regular Berkeley
  2842. #sockets library, i.e. in.h and inet.h are not misplaced in sys (rather than
  2843. #netinet and arpa, respectively).  Uses ANSI C constructs, advisory file
  2844. #locking on devices, etc.  curses support added.  Reportedly, the
  2845. #/usr/include/sys/vnode.h file has a bug which must be fixed before this
  2846. #makefile entry can work correctly.  The "if DEBUG" directive at about line
  2847. #320 must be changed to "ifdef DEBUG".
  2848. #After building, use "mcs -d" to reduce size of the executable program.
  2849. sv88r40:
  2850.     @echo 'Making C-Kermit $(CKVER) for Motorola UNIX System V/88 R40...'
  2851.     $(MAKE) wermit "CFLAGS = -O -DSVR4 -DDIRENT -DHDBUUCP \
  2852.     -DDYNAMIC -DSTERMIOX -DTCPSOCKET -DCK_CURSES $(KFLAGS)" \
  2853.     "LIBS= -lsocket -lnsl -lcurses" "LNKFLAGS = -s"
  2854.  
  2855. #PFU Compact A Series UNIX System V R3, SX/A TISP V10/L50 (Japan)
  2856. #Maybe the -i link option should be removed?
  2857. sxae50:
  2858.     @echo 'Making C-Kermit $(CKVER) for PFU SX/A V10/L50...'
  2859.     $(MAKE) wermit \
  2860.     "CFLAGS= -DSVR3 -DDIRENT -DsxaE50 -DTCPSOCKET $(KFLAGS) -i -O \
  2861.     -DKANJI" "LNKFLAGS= "
  2862.  
  2863. #Olivetti X/OS R2.3, 3.x.
  2864. #NOTES:
  2865. # . If you build the executable on 2.x X/OS, it will also run on 3.x.
  2866. # . If you build it on 3.x X/OS, it will NOT run on 2.x.
  2867. # . Kermit can run with no privileges unless the uucp lines are protected,
  2868. #   in which case kermit must be owned by uucp with suid bit set:
  2869. #   chown uucp kermit ; chmod 4111 kermit.
  2870. xos23:
  2871.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS...'
  2872.     $(MAKE) wermit \
  2873.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DDYNAMIC $(KFLAGS)' \
  2874.     "LIBS=" "LNKFLAGS="
  2875.  
  2876. #As above, but with curses.
  2877. xos23c:
  2878.     @echo 'Making C-Kermit $(CKVER) for Olivetti X/OS with curses...'
  2879.     $(MAKE) wermit \
  2880.     'CFLAGS=-OLM -DOXOS -DTCPSOCKET -DHDBUUCP -DDYNAMIC -DCK_CURSES \
  2881.     $(KFLAGS)' "LIBS=-lcurses" "LNKFLAGS="
  2882.  
  2883. #Clean up intermediate and object files
  2884. clean:
  2885.     @echo 'Removing object files...'
  2886.     -rm -f ckcmai.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
  2887. ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) ckcpro.$(EXT) ckcfns.$(EXT) \
  2888. ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) \
  2889. ckufio.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) ckwart.$(EXT) ckuusx.$(EXT) \
  2890. ckuusy.$(EXT) ckcnet.$(EXT) ckuus6.$(EXT) ckuus7.$(EXT) ckcmdb.$(EXT) \
  2891. ckcpro.c wart
  2892.  
  2893. #Run Lint on this mess for the SUN/BSD version.
  2894. lintsun:
  2895.     @echo 'Running Lint on C-Kermit $(CKVER) sources for SunOS version...'
  2896.     lint -x -DSUNOS4 -DDIRENT -DTCPSOCKET -DSAVEDUID -DDYNAMIC \
  2897.     ck[cu]*.c > ckuker.lint.sun
  2898.  
  2899. lintbsd:
  2900.     @echo 'Running Lint on C-Kermit $(CKVER) sources for BSD 4.2 version..'
  2901.     lint -x -DBSD4 -DTCPSOCKET ck[cu]*.c > ckuker.lint.bsd42
  2902.  
  2903. lints5:
  2904.     @echo 'Running Lint on C-Kermit $(CKVER) sources for Sys V version...'
  2905.     lint -x -DATTSV ck[cu]*.c > ckuker.lint.s5
  2906.  
  2907. lintmips:
  2908.     @echo 'Running lint on C-Kermit $(CKVER) sources for MIPS version...'
  2909.     lint -DMIPS -DDIRENT -DPID_T=int -DGID_T=gid_t \
  2910.     -DUID_T=uid_t -DNOJC ck[cu]*.c > ckuker.lint.mips
  2911.